question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pmmmwhcommented, May 26, 2021

I’ll take a look tomorrow.

0reactions
pmmmwhcommented, May 30, 2021

@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:

Screenshot 2021-05-31 at 00 13 38

Which, when I do devServer.devMiddleware.writeToDisk to print out files, there seem to be a directory problem where some names are undefined and thus not recognized properly:

Screenshot 2021-05-31 at 00 14 23
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found