-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
TS type imports broken in v1.0.1 #5704
Comments
@FOX-cat please provide some source code for reference |
Hi @bartlomieju, Regards, |
@bartlomieju #5029 is the commit that breaks EVT. |
I identified the issue - declaration files are mistakenly analyzed for imports which causes to download referenced libs. I'll have a fix soon. |
@bartlomieju @ry thank you for your reactivity! |
@garronej I think I will need some repro after all; the issue I found might not be related to this one. |
Ok, brb |
git clone --single-branch --branch 1.7.0 https://github.com/garronej/evt
deno run evt/lib/Ctx.ts With 1.0.0 it compile, with 1.0.1 it doesn't. |
@garronej thanks, I will investigate 👍 |
@bartlomieju No thank you! |
These lines seem to be the root cause of the problem - dynamic imports that expose types. I guess these were picked by I tried changing module graph parsing to include dynamic imports but it did not help with this problem. Calling @kitsonk for opinion |
We should include dynamic imports in the sources... that still might be hard to grab all the ones TypeScript can see itself and use... I mean structures like the above I find crazy work at all, but obviously they do (like why does it not require an |
@bartlomieju You are right 👍👍👍 |
And @bartlomieju @kitsonk, I think maybe you are confusing dynamic import with type import that are two different things although the syntax is the same... |
@garronej oh yeah, I had totally forgotten about that! Either way, we should support it. |
im no good at opening bug reports but here;

this kind of stuff was working pre-1.0.1, but it isn't working now
not entirely sure what the issue is so i apologize that this isn't the most informative issue request, as well as not-so-good title
The text was updated successfully, but these errors were encountered: