-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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-dev-server version 4.12.0 causing compile errors in application #4771
Comments
Same here |
Sorry I can't please provide normal reproducible test repo, we don't have There is a PR for our new overlay and it was improved and redesign 87a26cf and you will not find there something criminal Please avoid any spam, if you need help, provide a reproducible test repo as we ask and I will help you |
The error text is literally in the bug description.
our dev dependencies the error this morning: As for a test repo, it is like I said, install webpack-dev-server 4.12.0 in an application and then open and close the developer tools a few times in a browser of your choice (I've seen it happen in Chrome, Edge and Firefox). Hard installing webpack-dev-server version 4.11.1 into our devdependencies resolves the error, so that is the minimal working example of that it must be caused by the new webpack-dev-server version. If this is not enough, please be more clear in what you need from me to be able to look into this issue. |
@alexander-akait I think it may be caused by the runtime error catching behavior. I'll see if I can add new config options to opt-out this behavior next week. Does that sounds like good idea to you? |
@AlmaFenetre thanks for raising the issue, I'm sorry that you have some issue with the latest release. Regarding reproduction, knowing 4.12.0 cause error in your setup does tell us that some change in 4.12.0 cause the error, but it doesn't tell us "in what scenario it has issue", which is important to create a proper fix. A popular project like |
Can you clarify, I think they have custom scripts for our runtime and because our HTML was changed they have a problems now, usually I closed such issues, because no one provide how we can reproducible it and we don't have I will keep open some times, if noone give normal reproducible example I will close, unfortunately we are not magicians |
I'm seeing this as well. |
@malcolm-kee Can you check it, maybe we don't respect it? But we have tests... |
https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded From this link: So what I think is happening is that all errors (including benign ones that are ignored by the application, as they do not show up in the developer console in my instance) are nevertheless bubbled up to webpack-dev-server's error overlay. |
I'm also seeing this. In my case I have multiple apps, but I only get the immediate overlay with errors when resizing in one of my apps. In each of them, any logged JS error leads to the overlay. This is despite having This happens on 4.12.0 but if I use 4.11.1 hiding the overlay works as expected. |
I am experiencing this issue as well. Inspecting the code, these options are never passed to |
Overlay will be fixed soon, with |
@alexander-akait |
Oh, I see, we can provide an option to disable this behaviour, I thought it will be better experience, but looks like not for all |
@alexander-akait a really "nice to have" feature would be an option to filter errors/warnings ie: client: {
errors?: boolean | (error: Error) => boolean
warnings?: boolean | (warn: unknown) => boolean
} Where we could use it like: client.errors = (error) => !error.message.includes('ResizeObserver') |
Ideally:
But let's implement boolean firstly, so you can disable it if you need, and then we can look at serilization |
Becaise |
I think we will close such problem today (I need some rest after 12 hours of work), so workaround - keep 4.11.1 temporary |
lock version 4.11.1 |
Thanks for your work on this - looking forward to patch release to address this issue. 🙇🏻 |
@korgon you should be able to turn off the error by adding |
This bit us as well, hampering local development. Another very confusing aspect is this is listed as a compilation error when it's not. We were aware of the ResizeObserver issue in other contexts and had measures to deal with it, however, suddenly it started showing up as a compilation error in webpack, which made no sense as it doesn't show up in the build console during compilation, and we were stumped as to why what is normally a runtime error had suddenly morphed into a compilation error. |
/cc @malcolm-kee Can we rename our title for runtime errors? |
To close the loop, this is documented https://webpack.js.org/configuration/dev-server/#overlay |
Thank you! This solved my problem |
Bug report
Webpack-dev-server version 4.12.0 causes compile errors in application on browser viewport resize
Actual Behavior
We run an application which uses webpack-dev-server 4.12.0 as a dependency. With this version of webpack-dev-server, whenever we resize the browser viewport in our application (e.g. by opening developer tools), an error overlay pops up stating "ResizeObserver loop limit exceeded". This behaviour does not occur in the exact same version of the application that uses webpack-dev-server version 4.11.1.
Expected Behavior
The error should not appear when resizing the browser viewport in any way.
How Do We Reproduce?
The text was updated successfully, but these errors were encountered: