Next.js Discord

Discord Forum

Next.js dev inspect server executing 2 times and failing

Unanswered
Egyptian Mau posted this in #help-forum
Open in Discord
Egyptian MauOP
I'm trying to start the inspector for server from the guide https://nextjs.org/docs/pages/building-your-application/configuring/debugging#server-side-code.
My package.json looks like:
{
  ...
  "scripts": {
    "dev": "cross-env NODE_OPTIONS='--inspect' next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  ...
}

But the inspector is running 2 times and hence failing.

1 Reply

Egyptian MauOP
This is the terminal output: