-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Crash tsc --watch on adding "module": "none" to tsconfig #39597
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
Comments
It breaks code. |
You should specify proper Or use There is |
@IllusionMH yes, as I said, I didn't notice it added it. I tried doing "module": "none". it crashed the compilar due to another bug with
This is why I supplied NO module config at all.. And expect to get NO module/export stuff at all.. Which works in 3.9 but 4.0 breaks Seems the above error is only a problem when using
Which "exports" is undefined, so the code doesn't run. Basically, it means 4.0.0 will leave the javascript with unrunable code. |
This is behavior from 3.8 when |
@andrewbranch see crash report mid-thread |
There are three separate things to address here:
|
Would
Be acceptable in this situation? |
Yep, that works! Just be aware that just like |
That should work. Just in case if type foo<T> = import('./bar').foo<T>; |
Okay, that is an interesting complication. Thankfully for my current use case that is not a problem, but may perceive multiple files working as one each having reference to type foo in the future. But that is Future Colin's problem! |
Ohhh. Didn't know about that little hickup. I will keep that in mind. |
@andrewbranch @IllusionMH type foo = import("./bar").foo; and
worked perfectly.. (of course except for --watch, but I can live with that) edit just noticed you fixed the |
This is only an issue on
4.0.0
, this was not happening on3.9.6
Search Terms:
empty export
Code
// Test this by running
tsc
on the command-line, rather than through another build tool such as Gulp, Webpack, etc.Expected behavior:
output should be
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: