We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When instructing CRA apps to use https for dev server hot module reloading stops working.
To reproduce:
yarn
./packages/apps/app-multi-comps/package.json
"start": "HTTPS=true react-scripts start"
expected results: App would update and show changes
actual results: App does not update until manually refreshed
I also tried
HTTPS=true
The text was updated successfully, but these errors were encountered:
In case anyone else is looking for this, I've solved it with a temporary workaround.
The issue is the websocket connect for reloading is not using wss protocol.
Update line 62 in node_modules/@react-workspaces/react-scripts/node_modules/react-dev-utils/webpackHotDevClient.js to the following:
node_modules/@react-workspaces/react-scripts/node_modules/react-dev-utils/webpackHotDevClient.js
protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',
This was updated in the create-react-app repo but it doesn't seem react-workspaces has been updated to use it. See And this CRA update https://github.com/facebook/create-react-app/pull/8079/files#diff-5166b8ed2c51bdab6a247a95b14ff595R62
Sorry, something went wrong.
No branches or pull requests
When instructing CRA apps to use https for dev server hot module reloading stops working.
To reproduce:
yarn
in folder to install dependencies./packages/apps/app-multi-comps/package.json
start script to"start": "HTTPS=true react-scripts start"
expected results:
App would update and show changes
actual results:
App does not update until manually refreshed
I also tried
HTTPS=true
in a .env fileThe text was updated successfully, but these errors were encountered: