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 not working on clean install

See original GitHub issue

Hot-reloading does not seem to be working for me, on a completely fresh install of v3.

Steps to recreate:

git clone git@github.com:mxstbr/react-boilerplate
cd react-boilerplate
git checkout v3.0.0
npm run setup
npm run clean
npm start
  • Open app in Chrome
  • Change a string in app/components/HomePage/index.js

Expected behaviour:

string gets changed in browser

Result:

[HMR] Waiting for update signal from WDS...
[WDS] Hot Module Replacement enabled.
[WDS] App updated. Recompiling...
[WDS] App hot update...
[HMR] Checking for updates on the server...
XHR finished loading: GET "http://localhost:3000/39a7e2268207762c02b4.hot-update.json".
[HMR] The following modules couldn't be hot updated: (They would need a full reload!)
[HMR]  - 643
[HMR] Nothing hot updated.
[HMR] App is up to date.

I’m not entirely sure how to debug this, but I’d be happy to assist.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
gihrigcommented, Dec 11, 2016

This is, unfortunately a known issue:

Hot module reloading does not work with ‘function’ or ‘pureComponent’ based components.

If hot reloading is really important to you, I suggest as a workaround, that you use React.Component, even just temporarily, while you are working on page content.

The proposed fix for this issue is being discussed at #1068

1reaction
hossein761commented, Dec 6, 2016

Hi, I am having the same issue here. but the browser does not get refreshed. I see the code recompiles but not the browser. Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot Reload is not working in my React App - Stack Overflow
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 >
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 ...
Read more >
Hot Reload Stops working after saving. - Visual Studio Feedback
Hot reload stops working completely and i have to rebuild and run the project for it to work again, and breaks as soon...
Read more >
Hot reload is not working in Vue-Cli fresh installation - Laracasts
If you created something which created an error and then you fixed it, chances are it will require a reload because the original...
Read more >
Hot Module Replacement - webpack
HMR is not intended for use in production, meaning it should only be used in ... + // Dev server client for web...
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