-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fileTypeStream broken import #648
Comments
That is indeed an unintended breaking change. I think we all had forgotten about the
It sounds like your bundler/compiler config is incorrect. You should be getting the // @Borewit |
Thanks for the response! It was all working fine (including bundle/compiler config) prior to the update so I think it's probably just the breaking change that is the cause. |
I am sorry if I have broken something. If you consider getting rid of it, I do not mind. Not sure if the /core sub export adds much value. I had trouble compiling Angular code using such sub export. |
Not a mistake at all. In PR #635, introducing web stream support, the We should add Web Stream flavour of Update: Add web stream support for |
Thanks for the info. I guess the problem I am seeing is that with that change (introduced in 19.1.0) TypeScript doesn't understand where to look for the type information anymore. It works when running the app but not for the tooling. I was able to fix it on my side by adding a type definition file but this seems less than ideal. Maybe I am missing something?
|
@tvthatsme Can you try this branch? 7548a62
|
Hey @sindresorhus thanks for looking at it a bit more! I tried your branch, together with deleting the type definition file I had created, but got the same error when running typecheck:
I think there is something going on where typechecking is looking at the default or core type definitions, but the app is really just using the node methods. At this point, I have the type definitions working and am not blocked. So I'm fine to close this issue if it's a "just me" situation. I appreciate the support in looking at this issue! |
Same issue here |
That is very weird, as since v19.4.0, both entry points (Node & default) export |
same issue |
The export of |
We are updating from
19.0.0
to19.0.3
and facing a seeming breaking change.Had been using:
But see that
fileTypeStream
has now been moved to the index file. So I expected that just changing the path would work.However, the module exports don't provide a path to import this function. The node imports work fine but the default is mapping to
./core.js
so it's breaking the TypeScript compiler.Is this something we could get reverted/adjusted to so the importing of
fileTypeStream
works as expected?The text was updated successfully, but these errors were encountered: