-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
improve our overlay #3689
Comments
Not sure if it's possible, but it would be awesome if compilation errors were shown after refreshing the page! 🙂 Currently if the page is refreshed when there's a compilation error, we just get a whitescreen and no overlay is shown. |
I'd be happy to try implementing these improvements. |
Can you provide reproducible steps, I think it is bug |
|
@ylemkimon yep, feel free to start it, for runtime errors we need a new options for overlay, i.e. |
how can I customize overlay behavior? I've tried this devServer: {
overlay: {
warnings: false,
errors: true
}
}
```
but it did not worked |
Should work, what is the problem? |
@sibelius If you're using dev server v4, you should put devServer: {
client: {
overlay: {
warnings: false,
errors: true
}
}
} |
I think all the 3 listed can be implemented independently. I would like to share my current thought on number 3 (improve styles). Based on what I've seen in Instead, we can stick with current approach (manually constructing the HTML using plain JS), and just port-in the style. |
@malcolm-kee What we need to implement more, and I will update our check list or maybe we need a small dicussion about other features from CRA (or other good overlays) |
CRA error stack was pretty nice as it showed code snippet, but I not sure if that's possible given that we don't have control over Other than that I'm thinking of making runtime overlay less intrusive, like showing at bottom right, since it usually doesn't break application code like compilation error does. |
Sounds good, even more, I think we can add an option for this, even for compilation errors/warnings
Can you show me, because we can use generate source maps (if they were enabled) |
Found the following gif from here. |
hm, I see, I think we can improve it on webpack side, I will look deeply on this before preparing the new release and will say how we can achive it |
Adding some design: https://www.figma.com/file/xyeFjFzImMya1MdDDn7vii/Webpack-Error-Overlay?type=design&node-id=0%3A1&t=SgABTKrN4qJU6k15-1 Feedbacks are welcomed. Compilation errorRuntime error notificationThis notification button will be positioned fixed at bottom right Runtime error (when clicked) |
@malcolm-kee These designs look awesome. Sad that it's unlikely they will ever get implemented. |
@levrik I am fine with such improvements and the new design, if you want to send PR - welcome |
I can try implementing this design post major version release. |
@alexander-akait I would love to but doubt I'll find the time for it. |
Code
improve our default overlay:
runtime
errorsCRA has
react-error-overlay
, I think we can union with them and create the one great overlay/cc @raix
Please paste the results of
webpack-cli info
andwebpack-cli version
here, and mention other relevant informationExpected Behavior
Better DX
Actual Behavior
Our overlay is very simple and in some places have bad DX
The text was updated successfully, but these errors were encountered: