-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Webpack 5 dev server doesn't show detail error in overlay #2786
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
Comments
For maintainers only:
|
No problems in webpack |
Just encountered the exact same and tracked it down to function showMessage(messages) {
ensureOverlayDivExists(function (div) {
// Make it look similar to our terminal.
div.innerHTML = "<span style=\"color: #".concat(colors.red, "\">Failed to compile.</span><br><br>").concat(ansiHTML(entities.encode(messages[0])));
});
} Inspecting the error messages shows that they are actually objects containing a div.innerHTML = "<span style=\"color: #".concat(colors.red, "\">Failed to compile.</span><br><br>").concat(ansiHTML(entities.encode(messages[0].message))); |
Yes, but we need to keep compatibility with webpack@4, so need to check |
Would you plan to fix it? |
Would you plan to fix it? |
I will send a fix. |
Fixed in v4 branch (release will be soon) |
Hi @alexander-akait, |
We already have the issue for v4 |
ok great, thank you |
Hmm.. Reading the above it should be ok/fixed in Webpack 5.26.1 (I'm using now), but I see "Failed to compile." only. Is it only for me? |
@coderars when @alexander-akait was telling above that this issue will be fixed in V4, he was talking about webpack-dev-server V4 |
Is it supposed to be fixed in |
@neemzy If you're using Webpack 5 you have to use webpack dev server with the latest beta version. |
@jimblue Why? Neither README says so. I'm kinda weirded out by the fact using a non-stable version of the dev server with the latest stable version of Webpack itself would be mandatory. |
I agree with @neemzy. How about releasing the fix has a hotfix for v3 while everyone waits for v4 to get released? |
I think, this is not Webpack 5 problem, this is problem with version of |
@EvgenyLeukhin I understand, but as I stated above, I don't see any good reason for encouraging people to use a beta version of the dev server with a stable version of Webpack rather than backporting the fix. |
Bug report
the dev server doesn't show detail error in overlay in webpack 5
What is the current behavior?
the overlay message doesn't show the compiler error, maybe the error scheme change in webpack 5?
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
show the detail error like webpack4
Other relevant information:
webpack version: 5.2.0
Node.js version: 14.8.0
Operating System: mac os 10.14.6
Additional tools: npm v6
The text was updated successfully, but these errors were encountered: