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 only HMR failed to work in 5.48.0

See original GitHub issue

Bug report

What is the current behavior?

HMR fails to work

If the current behavior is a bug, please provide the steps to reproduce.

Open x.zip and follow reproduce steps in README.md

What is the expected behavior?

HMR should work to update browser content.

According to #12408 , HMR check api fails to add updated modules to updatedModuleList array, and with the change in 551f64a59030c9250fdf97ce05b49d98efb45dab it adds an empty array check, now HMR failed to work completely.

Dowgrade webpack to 5.47.0 can solve this issue.

Other relevant information:

webpack version: 5.48.0 Node.js version: v16.5.0 Operating System: macOS Additional tools: No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
alexander-akaitcommented, Aug 5, 2021

@Jack-Works it was in docs and also fixed in v4, just remove hot or hotOnly

Read more comments on GitHub >

github_iconTop Results From Across the Web

New Setup with Webpack 5 and Dev-Server and HMR thrown ...
I updated my setup and with the new modules my HOT reloading no longer works. I get the following error message:
Read more >
Bundle with Webpack - Gitter
I'm new webpack user and i want to know how to use "style-loader" with ... cannot be hot updated, I see the following...
Read more >
webpack/types.d.ts - UNPKG
554, * After this method has succeeded the cache can only be restored when build dependencies are. 555, */. 556, storeBuildDependencies(.
Read more >
webpack-contrib - Bountysource
loader rule issuer tests always fail when experimentalUseImportModule is ... but given that HMR for .css doesn't work in some cases while exctraction...
Read more >
Webpack's HMR & React-Hot-Loader — The Missing Manual
You can use just one of them. The main difference is as follows: only-dev-server doesn't reload the browser upon syntax errors. This is ......
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