-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Webpack process never exits on missing JS import #759
Comments
Please create minimum reproducible test repo |
Can't reproduce |
Sure: https:/lneveu/bug-repro-webpack-sass-loader |
Thanks look on this in near future |
I found similar issues here: nodejs/node#17872 and here: #523. A fix was proposed and merged in the main Webpack repository: webpack/webpack#6193. I tried to apply the same patch, but in webpack/cli (since the code was moved there: https:/webpack/webpack-cli/blob/master/bin/cli.js#L317) and it seems to fix the bug. |
let's close in favor webpack/webpack-cli#1078, anyway thanks for the issue and the PR |
Expected Behavior
In
bail
mode, Webpack build process should fail out and stop on first error (in this case, a missing import file).Actual Behavior
Webpack build process get stuck after throwing the expected error. The process never exits.
Code
How Do We Reproduce?
Run Webpack using the given configuration.
Mandatory conditions to reproduce the bug:
bail
mode must be enabled@import
. If foo.scss is replaced by bar.scss, everything works as expected.Let me know if you need more details.
Thanks!
The text was updated successfully, but these errors were encountered: