Dev Server starts but never render the project.
See original GitHub issueVerify canary release
- I verified that the issue exists in Next.js canary release
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 16.14.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 12.1.6-canary.6
react: 18.0.0
react-dom: 18.0.0
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
My project was running on dev server. I closed the server to install axios
, which happend with no issues. I runned the npm run dev
command and the server never rendered, it is frozen on the “ready” message. I created a new folder, installed Next again, with the npx create-next-app
command and copied all my project files into that folder and it was running with no issues, even with axios
installed.
I took another pause and when I went back to the project, the same issue happend: the project is not rendering and is stuck on the “ready” message, as the image below shows:
Expected Behavior
The dev server should be able to render the project on localhost:3000
To Reproduce
Start a project, worka little bit with it. Close the project, wait a little bit, get back to the same project and try to npm run dev
.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
So I’ll assume you use the VSCode terminal to spin up the dev server. If you close the window without exiting the dev server, I’m not sure if VSCode properly finishes the process, which I guess might lead to something hanging in the background, but I’m not sure. 🤔
We will need a full reproduction to be able to debug. What do you mean by “close the project”?
Please attach your code (preferably a simplified version that reproduces the problem) as well