#Next.js dev server stops immediately when opening localhost in browser (no errors)

1 messages · Page 1 of 1 (latest)

gloomy phoenix
#

Hi everyone, I’m stuck with a strange local dev issue in a Next.js 16.0.7 project.
When I run the dev server, I see:

next dev

▲ Next.js 16.0.7 (Turbopack)

✓ Starting...
✓ Ready in 983ms

Everything looks normal, but as soon as I open http://localhost:3000 in Chrome, the Next.js dev server immediately stops. No errors, no logs, the process just exits.

Environment:

  • Windows 11
  • Next.js 16.0.7 (Turbopack)
  • Chrome browser
  • Astrill VPN (Stealth mode)

Tried:

  • Deleting .next folder
  • Switching browsers
  • Changing dev port
  • Excluding browser from Astrill app filter
  • Running without extensions
  • Reinstalling node_modules

Still the same: opening the page kills the server.

Has anyone experienced this or know how to debug why the Next dev server shuts down with no error? Any help appreciated!

ornate helmBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

gloomy phoenix
#

I found the issue. It seems to be related to the specific version of Next.js I was using. After downgrading from Next.js 16.0.7 to 15.5.7, the dev server stopped crashing and everything worked normally again.

If anyone runs into a case where the Next.js 16 dev server closes immediately when opening localhost, try using Next 15. That fixed it for me.

Marking this as solved.