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
Unhandled Promise Rejection #11515
Comments
Please create reproducible test repo otherwise issue will be closed |
Same - webpack/webpack-sources#65 Without reproducible test repo we can't help |
Actually, this is reproducible, so I'm looking into isolating the cause to see if I can make a reproducer |
@daveisfera do you use |
We've started playing with it but don't use it yet. I've been able to isolate the bundle that's causing the problem, but any advice on isolating the cause the problem? |
Just create reproducible test repo |
Yes, that's what I'm working on, but the issue only happens when |
@daveisfera Just create example with |
The code that's running into this is a large/complex set of application code that I can't share, so I'd like to extract out just the problematic code and make a reproducer from that. While playing around with things, I noticed that forcing
|
@daveisfera Please report the issue in |
It's good that it looks like this being resolved, but honestly, my bigger concern was that this "silently failed". It killed the build but the status code was still 0, so a completely bogus build was deployed when it should have been able to be caught, so is that something that could be fixed to prevent this sort of issue in the future? |
Bug found webpack/webpack-sources#89 |
@daveisfera We ran into a similar problem. We were able to fix the underlying problem with the plugin, but in the mean time, the deployment went out without compiled js & css. It would have been much better to have the build fail. #12086 |
Bug report
What is the current behavior?
We just had a bad build deploy and after digging in, it turns out that we there was an unhandled promise rejection that didn't cause the build to fail like it should have. Here's the output:
If the current behavior is a bug, please provide the steps to reproduce.
This was an error that happened and re-running with the same code didn't cause the same problem, but erroring out without an indication that things went bad is very concerning and problematic.
What is the expected behavior?
The error would be raised so our build could fail rather than deploy a bad build.
Other relevant information:
webpack version: 5.0.0-rc.0
Node.js version: 12.18.4
Operating System: Debian Buster 10.5
Additional tools: babel 7.11.6
The text was updated successfully, but these errors were encountered: