-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Runtime error after switching between dev-server and watch mode when using filesystem cache #1028
Comments
Yeah, I will add protection to this, but you need to fix your configuration for better caching, because
i.e. you invalidate cache between |
This fix works, thanks! We often use both
It would be better if this was the default behavior of webpack cache, but this is a webpack issue. |
Yeah, we will consider it |
Bug report
Using config with filesystem cache and mini-css-extract-plugin after switching from building project with dev-server to build with
--watch
I get runtime errorUncaught TypeError: Cannot read properties of undefined (reading 'dispose') ...
.I'm not shure if it's bug in plugin or webpack.
Actual Behavior
After build completes I open builded page and get runtime error:
Uncaught TypeError: Cannot read properties of undefined (reading 'dispose') ...
The code of main js entrypoint doesn't run.
Expected Behavior
No error and main js entrypoint runs.
How Do We Reproduce?
https://github.com/Raykeen/webpack-dev-watch-switch-hmr-issue
The text was updated successfully, but these errors were encountered: