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
Next fast refresh not working as expected #22317
Comments
I have the same problem.
|
Please upvote this discussion: #22214 |
Try creating a file called ".env.local" in your root project folder and add "WATCHPACK_POLLING=true" to it. Restart the server. |
I was having a very similar issue in Earlier... fast-refresh looked like it worked on the outside but wasn't really pulling in changes from the code although it would say it compiled successfully in the dev server. |
Hi, @joao-pedrozo I'm going through older issues, I am curious if you could check out newer versions of Next (as of writing latest is Otherwise, an actual reproduction would be very helpful. |
Hi @balazsorban44,the issue remains in |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
^10.0.7
What version of Node.js are you using?
14.8
What browser are you using?
Chrome
What operating system are you using?
Ubuntu 20.04
How are you deploying your application?
next dev
Describe the Bug
When I start the next dev server, it works pretty well until pass a few minutes like 2, then he starts a loading on the page, and when he finish the loading even if I update a file on the code, he does not update on screen so I have to go and restart the server because only works on the first ~2 minutes.
Important: I'd like to say that I has having a similar issue with the webpack-dev-server used by the Create React App, my server was also not updating and showing old versions but I refresh the page for like 3 times and then the content appears, I did the migration to the repository to nextjs instead CRA, but now I have a different issue. If you want to check if I did any wrong configuration, the link for the repo is: https://github.com/joao-pedrozo/reviewanything/tree/master/packages/frontend
Expected Behavior
I expected that the dev server should do the fast refresh correctly until I finish the server, and not stop working from nothing.
To Reproduce
Create an next app, run the dev server.
The text was updated successfully, but these errors were encountered: