Fix for #6720: HMR not working in Firefox if proxy option present by dmile · Pull Request #7444 · facebook/create-react-app
This was referenced
Jul 28, 2019Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide testing criteria for this please @dmile?
[Edit] A test repository would actually be ideal.
Testing is pretty simple, not sure that special repository needed:
- Add a proxy field to your package.json, for example:
"proxy": "http://localhost:4000" - Run the app in the development mode. Open http://localhost:3000 to view it in the Firefox.
Errors like:
The development server has disconnected ...in browser consoleProxy error: Could not proxy request /sockjs-node/947/wwr0adlx/websocket from localhost:3000 to http://localhost:4000 ...in app console (if you make code edits)
should disappear
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the hard-coded path is a good approach?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case you need to check for platform compatibility for this path.
lock
bot
locked and limited conversation to collaborators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters