React template: CSS Modules HMR not working #1030

Closed
opened 2025-08-09 17:18:36 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @novascreen on 2/12/2017

As soon as i add ?modules to the css-loader I get the following message after a CSS change:

[HMR] The following modules couldn't be hot updated: (Full reload needed)
This is usually because the modules which have changed (and their parents) do not know how to hot reload themselves. See http://webpack.github.io/docs/hot-module-replacement-with-webpack.html for more details.
[HMR]  - ./~/css-loader?modules!./ClientApp/css/site.css

I couldn't find anything that i'm missing to make that work. As far as I understand this should work.
I also looked for an option to pass reload=true to webpack-hot-middleware/client, but nothing seems to be exposed for that.

*Originally created by @novascreen on 2/12/2017* As soon as i add `?modules` to the `css-loader` I get the following message after a CSS change: ``` [HMR] The following modules couldn't be hot updated: (Full reload needed) This is usually because the modules which have changed (and their parents) do not know how to hot reload themselves. See http://webpack.github.io/docs/hot-module-replacement-with-webpack.html for more details. [HMR] - ./~/css-loader?modules!./ClientApp/css/site.css ``` I couldn't find anything that i'm missing to make that work. As far as I understand this should work. I also looked for an option to pass `reload=true` to `webpack-hot-middleware/client`, but nothing seems to be exposed for that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1030
No description provided.