-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
compile.run not propagating thrown errors #8699
Comments
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Still an issue I believe |
@aryzing hi, can you create minimum reproducible test repo? |
This issue had no activity for at least three months. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
The problem for me was related to this sass/node-sass#2666, and the simplest solution for me was to do this instead |
Bug report
What is the current behavior?
When using the node api, throwing an error within the
compiler.run
function does not propagate the error to the calling process:The only way I can produce a non-zero exit status is if I manually call
process.exit(1)
within thebuild.js
code.If the current behavior is a bug, please provide the steps to reproduce.
Just throw an error in the
compiler.run
functionWhat is the expected behavior?
The error should be propagated, and the exit status of the script should not be 0.
Other relevant information:
webpack version: 4.26.0
Node.js version: 11.6.0
Operating System: Mac OSX
Additional tools: n/a
The text was updated successfully, but these errors were encountered: