-
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 does not work @latest #35703
Comments
Updated to Chrome Version 100.0.4896.60 (Official Build) (arm64), still same issue. |
Correction on my ticket. It appears the fast refresh is working, it's just taking a long time for it to actually reload. I measured it to about 4 seconds. |
I have the same problem only that Fast Refresh doesn't work at all. Apparently React v18 breaks it, as it works with the latest version of React v17 (tried with Next.js v12.1.3-canary and v12.1.1). |
I think the original title said it best. Mine is completely broken for changes made in the code, and works fine for changes made in stylesheets. Also brand new app, tried both with |
I have the same issue, kind of.
and in the browser (chrome, firefox and brave) I see the little vercel loader in the bottom right for a fraction of a second... however, the page doesn't refresh. Like i said, brand new next app, and all i have changed is the word Forgot to mention, latest LTS node, running on Pop!_OS. |
I found out that I had a component that made my website refresh every 4 seconds, so when I removed that component, the fast refresh does not work at all. |
Same thing here. |
Same problem here. I'm using the latest version on an ARM. |
For those who have this issue. You need to downgrade the react version to 17.0.2 for The latest React version changed in the last day, from 17.0.2 to 18.0.0. |
@djxy that was it! |
Fast Refresh also stopped working for me. The page only gets updated when I interact with an element with an internal state (and the state changes). |
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
warn - Latest canary version not detected, detected: "12.1.2", newest: "12.1.3-canary.0".
Please try the latest canary version (
npm install next@canary
) to confirm the issue still exists before creating a new issue.Read more - https://nextjs.org/docs/messages/opening-an-issue
What browser are you using? (if relevant)
Chrome 99.0.4844.83 (Official Build) (arm64)
How are you deploying your application? (if relevant)
No response
Describe the Bug
Just installed a new project with
npx create-next-app@latest
, and fast refresh is not working.Expected Behavior
For the browser to refresh when I save a change in my code editor.
To Reproduce
npx create-next-app@latest
start project with
npm run dev
The text was updated successfully, but these errors were encountered: