question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dev Server starts but never render the project.

See original GitHub issue

Verify 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: nextjs_bug

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:open
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
balazsorban44commented, Apr 25, 2022

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. 🤔

1reaction
balazsorban44commented, Apr 25, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

The dev server never responds when starting an empty project ...
I opened an issue in the Next Github repository which is now resolved and a fix should be available in the 9.0.1 release....
Read more >
When using react.js webpack-dev-server does not bundle
When you run the app, there is an embedded web server that runs our project, when we edit a file like App.js, the...
Read more >
How To Use Server-Side Rendering with Nuxt.js | DigitalOcean
When that is complete, change directory into favorite-airports and start the local development server: cd favorite-airports; npm run dev.
Read more >
Complete Guide to Webpack Configuration for React
in your project folder create a file called webpack.config.js and ... Let's create a npm script that runs a webpack dev server for...
Read more >
Deploy Node web app Error - Render community
Hello I am new to Render and have encountered an issue while trying to deploy ... The start script appears to be starting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found