HMR for @nrwl/react
See original GitHub issueHow to enable HMR for @nrwl/react. Is it possible to achieve it without custom webpack.config.json? (Like in Angular)
There should be something in docs for HMR.
In workspace.json “hmr”: true
"serve": {
"builder": "@nrwl/web:dev-server",
"options": {
"hmr": true,
"buildTarget": "testapp:build"
},
"configurations": {
"production": {
"buildTarget": "testapp:build:production"
}
}
Expected Behavior
module.hot should not be undefined
Current Behavior
HMR doesn´t work.
Context
"@nrwl/cypress": "8.5.1",
"@nrwl/eslint-plugin-nx": "8.5.1",
"@nrwl/jest": "8.5.1",
"@nrwl/react": "8.5.1",
"@nrwl/web": "8.5.1",
"@nrwl/workspace": "8.5.1",
Issue Analytics
- State:
- Created 4 years ago
- Reactions:33
- Comments:39 (2 by maintainers)
Top Results From Across the Web
Enable Hot Module Replacement(HMR ... - DEV Community
HMR offer many benefits. Here is a quote from the official webpack website: Hot Module Replacement (HMR) exchanges, adds, or removes modules ...
Read more >Enable Hot Module Replacement(HMR) in Nrwl/Nx React ...
HMR offer many benefits. Here is a quote from the official webpack website: Hot Module Replacement (HMR) exchanges, adds, or removes modules while...
Read more >nx react module federation hot reload - Stack Overflow
I applied the hmr: true option in both project.json files. (for the host and the remote). The problem that its working only for...
Read more >@nrwl/react:module-federation-dev-server | Nx
Next generation build system with first class monorepo support and powerful integrations.
Read more >Building ⚛️ React Micro Frontends Monorepo with NX in 5 min
npm install -D @nrwl/react ... nx g @nrwl/react:app remote ... “hmr”: false — It will avoid reloading loop of async remote app importing;....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Hashnode Post
No results found
@BigAB Wondering if there is any news here? This would be a great improvement for the nrwl react community 🙂
Thanks!
Not stale, I’m waiting for this! 😄