Runtime error after switching between dev-server and watch mode when using filesystem cache #1028
Open
Description
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 error Uncaught 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
Metadata
Assignees
Labels
No labels