-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Hot Reload cannot work #1932
Comments
Which Webpack version are you using? |
Just for another data point. I tested with Webpack 5 and it works. It should work with Webpack 4. |
I tried to revert part of new changes in 11.2.0(change the file in node_modules, and restart) Then, I downgrade to 11.1.8,and restart the project, everything is ok ├─┬ [email protected] |
add entry,plugins,devServer.sockPath should work {
entry: [require.resolve('react-dev-utils/webpackHotDevClient')],
plugins: [new _webpack.default.HotModuleReplacementPlugin()],
devServer: {
transportMode: 'ws',
sockPath: 'ws'
}
} |
[email protected] [email protected] if process.env.WDS_SOCKET_PATH is not set, default value change between two versions(old default value was /sockjs-node, an new default value is /ws) and if we dont pass sockPath to devSever config, the webpack-dev-server will use /sockjs-node as default: That's why the websocket request is always pending even if I add entry and pulgins back to the node_modules source code. |
I find the solution of this case: Add following config into styleguide.config.js {
webpackConfig: {
devServer: {
injectClient: true,
},
},
}, I think it can be added in here: |
I see the issue. The recent Webpack 5 compatibility is based on I'm not sure what is the best next step:
|
😴 This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week without any further activity. Consider opening a pull request if you still have this issue or want this feature. |
🎉 This issue has been resolved in version 12.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Current behavior
Hot Reload cannot work
To reproduce
Upgrade react-styleguidist from 11.1.8 to 11.2.0
11.1.8 works well
Expected behavior
The text was updated successfully, but these errors were encountered: