You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
The text was updated successfully, but these errors were encountered: