-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Fast refresh/hot reloading not working on latest canary release with react 18 (WSL, Windows 10) #35518
Comments
I've noticed it breaking with the tamagui site when upgrading from |
The hot reloading experience is broken out-of-the-box for me with a new nextjs app right now with React 18 going live – downgrading to 17 works as expected |
Figured out the problem and opened a PR here: #35718 We'll get it out today 🙏 |
- Updates the React 18 test suite to the latest React version. - Upgrade `react-refresh` module Fixes #35518 Fixes #35703 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` Co-authored-by: Jiachi Liu <[email protected]>
Released in 12.1.3 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome Version 99.0.4844.82 (Official Build) (64-bit)
How are you deploying your application? (if relevant)
No response
Describe the Bug
Fast refresh/hot reloading does not refresh the page when saving components/pages on latest canary release of next with latest release candidates of react (react18), running on WSL Ubuntu20.04LTS (Windows 10). I also tried on WSL Ubuntu18.04LTS and the same problem occurred.
Since, I also found this discussion about Fast Refresh not working on WSL Windows 10, I tried running the development server as suggested in that discussion
next dev -H ::
, but that didn't fix it.Linked discussions/issues:
Expected Behavior
Fast refresh should update the content of the page without having to manually reload the page.
As a comparison, I tried running latest stable release of next with react 17.0.2 and the fast refresh works as expected and content gets updated when file is saved.
To Reproduce
First install the correct versions
Then the steps:
http://localhost:3000/_next/static/webpack/pages/index.dfce9c9e68b9cbf0.hot-update.js
http://localhost:3000/_next/static/webpack/webpack.dfce9c9e68b9cbf0.hot-update.js
The text was updated successfully, but these errors were encountered: