-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Compiler Option: noEmitOnError #91
Comments
I agree this needs to be looked at. If you don't mind I'm going to hijack your issue a little bit to make it part of the effort to evaluate all compiler options in detail. Another part of this, I believe, is being able to fail a build. For example, if webpack is being run as part of a larger build process, people want to be able to get an error code out of webpack if there is a TS error so that the build fails. I think that the right way to handle that is using |
I'm probably going to work around this at the moment by removing the |
Out of curiosity, when you process the errors are you making use of the undocumented error information that's provided? I threw that stuff on there to help people who are processing the raw errors but I have no clue if people actually use it. |
I will have to double-check from work, tomorrow, but most likely I am using those properties. I'm formatting all errors to match the output pattern of tsc. I also have a modified pattern configured in VSCode, which allows WEBPACK|TSLINT in place of TS#### error codes. This way the IDE maps errors/warnings coming from ts/ts-loader, tslint or webpack itself (there are also some legacy JS files in the project). I'm also relying on some undocumented properties on the webpack error objects too, and that isn't really production quality, but it worked so far. Being able to include the |
Note : |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
1 similar comment
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale. Please reopen if you'd like to work on this further. |
I'm using the
noEmitOnError
option intsconfig.json
and I get a bunch ofTypescript emitted no output for ...
errors each time there is an error in one of my TypeScript files. It propagates to dependent files and it's getting really annoying, considering TypeScript errors are already properly reported. Can we remove this error or maybe suppress it ifnoEmitOnError
is true?The text was updated successfully, but these errors were encountered: