Hot reloading tested in different ways and is not working properly
See original GitHub issue-
Operating System: macOS Big Sur 11.2
-
Node Version: v14.15.4
-
NPM Version: 6.14.10
-
webpack Version: ^5.19.0
-
webpack-dev-server Version: ^4.0.0-beta.0
-
Browser: Google Chrome Version 88
-
This is a bug
-
This is a modification request
Code
Repository link: https://github.com/Ridermansb/webpack5Hot
master
branch it’s using only basic webpack-dev-server configuration without any pluginsreact-hot-loader
branch it’s using react-hot-loader plugin. Pull Request #1react-refresh-webpack-plugin
branch it’s using pmmmwh/react-refresh-webpack-plugin webpack plugin. Pull Request #2
Expected Behavior
In all case… should not reload the page and only reload the portion that’s changed
Actual Behavior
It’s Always reloading the entire page.
For Bugs; How can we reproduce the behavior?
Just clone the repository ridermansb/webpack5Hot
npm install
npm start
And try update Header
component
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Hot reloading tested in different ways and is not working properly
1 - this package is no longer in development. No changes will be made. 2 - hot-loader and react-refresh cannot exist simultaneously. Consider...
Read more >Troubleshooting XAML Hot Reload - Visual Studio (Windows)
This troubleshooting guide includes detailed instructions that should resolve most issues that prevent XAML Hot Reload from working correctly.
Read more >Hot Reload is not working in my React App
I have created this app with npx create-react-app. After this i have deleted all the files except index.js in src folder. Then Hot...
Read more >Hot reload not working - Visual Studio Feedback
- Hot Reload works ok. Opening solution from open project page have same problem, hot reload doesn't reload change.
Read more >Using Tomcat reload features to speed up development
In this article, we'll cover proper configuration and use examples for all of the different mechanisms Tomcat provides for reloading applications and Java ......
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 FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take a look tomorrow.
@FlavioMH This has nothing to do with the plugin. It is probably either something wrong in your Webpack setup, or a bug from WDS.
If you just persist the logs from hot reloading (simply by running
hot=only
or just use dev tools persist logs) you can see that WDS is complaining that the content base was not properly set and is lost on every update:Which, when I do
devServer.devMiddleware.writeToDisk
to print out files, there seem to be a directory problem where some names areundefined
and thus not recognized properly: