-
Notifications
You must be signed in to change notification settings - Fork 161
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
Failed build succeeds on second cache run #507
Comments
Same problem here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
modules with errors in them should not keep built file
Actual Behavior
My build runs. Multiple files have typescript errors causing the build to fail. The build succeeds when trying to run it again. When i disable the cache it fails every time.
Is an error being thrown?
there is no error being thrown.
Steps to Reproduce
I can build a repro if necessary. I see issue #365 and the related fix which is very similar. The errors that I'm seeing however are not throwing an exception. I have 2 work arounds currently. One is to automatically clear the cache in shell based on the return code of the webpack build:
the other is to hook into webpacks stats callback after the build is complete and remove the cache if there are any failures.
It would be more ideal if the hard source plugin did this and removed only cache entries for files which have failed if this is possible.
Operating System, Node, and NPM dependency versions
The text was updated successfully, but these errors were encountered: