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 module reloading with proxy not working in Firefox but works in Chrome

See original GitHub issue

Hi,

When developing using create-react-app in Firefox 66.0.1, hot module reloading isn’t working, and I get this error in console when using npm run start:

The connection to ws://localhost:3000/sockjs-node/800/q2e1i5qh/websocket was interrupted while the page was loading. websocket.js:7

This doesn’t happen in Chrome, and HMR works there as expected. I didn’t have problems in the past with Firefox, I’m not sure if it’s triggered by a Firefox update, or new versions of react-scripts. It may even be specific to my app.

I’m using react-scripts versions 2.1.8

Does anyone know what would cause this, and how I could get HMR working again? I’m not really sure where to look.

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:25
  • Comments:29 (5 by maintainers)

github_iconTop GitHub Comments

29reactions
mathieutucommented, May 31, 2019

Don’t close it stale bot! 😇

7reactions
muffinresearchcommented, Apr 25, 2019

As a temporary workaround, using the manual proxy config instead of using the proxy entry in package.json worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to force Chrome to reload proxy configuration file?
One way to do it that is fairly reliable is to completely turn off all proxy settings in the system settings dialogue (and...
Read more >
Vue cli 3 hot reload suddenly not working in browsers
Using quasar vue-3. Everything was fine but suddenly the live update of chrome stop working and I need to refresh after every change...
Read more >
MSN won't open in regular mode after update | Firefox Support ...
hold down the Shift key and left-click the Reload button · Options/Preferences -> Privacy & Security · Options/Preferences -> Privacy & Security
Read more >
BrowserSync keeps reloading infinitely upon JavaScript ...
This happens immediately after changing a JavaScript file and using webpack/browersync ( yarn start command). When running yarn build and testing the website...
Read more >
Google Chrome proxy settings? - Ask Ubuntu
Open a Terminal and type sudo -H nautilus. Type your password then press Ctrl + L and type /usr/share/applications/ and press Enter. Now...
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