Uh oh!
There was an error while loading. Please reload this page.
Disable noEmitOnError - #59223
Conversation
Sheetal Nandi (@sheetalkamat) What do you think of modifying For people who don't care about the emitted files, removing this flag is still a good idea IMO since you'll get everything anyway, so this PR itself seems like what we want (so I'm going to merge). |
Sheetal Nandi (sheetalkamat)
commented
Jul 10, 2024
It isnt that simple and i had thought about this but i think we should try it out and seek more feedback. |
After #58854, build mode proceeds even if there were errors. However, in our codebase we use
noEmitOnError.If I stick a random type error in
src/compiler/types.ts, then run the build, I end up with 17 thousand errors:This really breaks the self check in CI (like https://github.com/microsoft/TypeScript/actions/runs/9868392724/job/27250345885?pr=59217).
Disable the flag in our codebase, netting:
This does make me wonder if
noEmitOnErroris now just a general hazard when using build mode. Maybe this flag should really enable the old behavior? #58854 (comment)Or, detect when a dependency has
noEmitOnError, had an error, then also refuse to build?