Replies: 1 comment 2 replies
-
Please open an issue in ts-loader, they don't emit a warning/error using webpack API, so webpack thinks everything is okay and store a module in cache, we can't fix it here I want to make it discussion, because we can't fix it here /cc @johnnyreilly Why ts-loader doesn't use webpack API to emit warnings and errors? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug report
What is the current behavior?
My build runs:
npm run build
On the first run, it fails. A file in dependency has a typescript error, causing the build to fail.
When I try to rerun it, it succeeds.
When I turn off the cache, it fails every time.
Example package to reproduce: https://github.com/dnillovna/webpack-cache-fail.git
What is the expected behavior?
Failed builds should not create a cache that can be used for future builds. When cache is enabled, the build with errors should fail every time instead of only on the first attempt.
Other relevant information:
webpack version:
Node.js version:
Operating System:
Additional tools:
None
I got the information using
npm run version-info
, which executeswebpack --version
.I found a similar issue for the other webpack cache plugin: mzgoddard/hard-source-webpack-plugin#507
Beta Was this translation helpful? Give feedback.
All reactions