- Operating System: MacOS High Sierra 10.13.6
- Node Version: 9.7.1
- NPM Version: 6.0.1
- webpack Version: 4.19.1
- webpack-hot-middleware Version: 2.24.0
Description
I use css-loader with enabled modules option.
When I add any new css rule css-loader throw error:
Error: Aborting CSS HMR due to changed css-modules locals.
In that case I want to reload page, but webpack-hot-widdleware ignores any errors and I'm not able to handle errors and reload page.
Reproduction
https://github.com/AndreasCag/hot-reload-bug-repro
How Do We Reproduce?
- Download repro
- Install dependencies
npm i
- Run dev server
npm run dev
- Open browser with url
localhost:3000
- Open browser console
- Go to file
./src/test.css and add the following rule at the end of file
.test-3 {
font-size: 33px;
}
- Go to browser and check out console
Actual behaviour

Expected behaviour
Page automatically reloaded
Description
I use
css-loaderwith enabledmodulesoption.When I add any new css rule
css-loaderthrow error:In that case I want to reload page, but
webpack-hot-widdlewareignores any errors and I'm not able to handle errors and reload page.Reproduction
https://github.com/AndreasCag/hot-reload-bug-repro
How Do We Reproduce?
npm inpm run devlocalhost:3000./src/test.cssand add the following rule at the end of fileActual behaviour
Expected behaviour
Page automatically reloaded