-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Closed
Description
Bug report
When using NODE_OPTIONS='--inspect' next dev -p 1337 I'm still getting the error:
Starting inspector on 127.0.0.1:9229 failed: address already in use
Describe the bug
From what I understand, this bug should have been fixed as of #11041.
However, I still get the error:
npm run dev
> frontend@0.1.0 dev
> NODE_OPTIONS='--inspect' next dev -p 1337
Debugger listening on ws://127.0.0.1:9229/90c3d543-273f-492c-a8f6-bb3afd978e64
For help, see: https://nodejs.org/en/docs/inspector
[ wait ] starting the development server ...
[ info ] waiting on http://localhost:1337 ...
Starting inspector on 127.0.0.1:9229 failed: address already in useTo Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Edit
package.json'sdevscript:
"scripts": {
"dev": "NODE_OPTIONS='--inspect' next dev -p 1337",
...
},
"dependencies": {
"next": "9.3.4",
...
},
npm run devoryarn dev- See error
npm run dev
> frontend@0.1.0 dev
> NODE_OPTIONS='--inspect' next dev -p 1337
Debugger listening on ws://127.0.0.1:9229/90c3d543-273f-492c-a8f6-bb3afd978e64
For help, see: https://nodejs.org/en/docs/inspector
[ wait ] starting the development server ...
[ info ] waiting on http://localhost:1337 ...
Starting inspector on 127.0.0.1:9229 failed: address already in use
Expected behavior
Do not see address already in use error
Screenshots
If applicable, add screenshots to help explain your problem.
System information
- OS: macOS
- Browser (if applies) [e.g. chrome, safari]
- Version of Next.js:
9.3.4(also tried on9.3.5-canary.7) - Version of Node.js:
12.16.2
felixroos, nicholaschiang and Janpot
Metadata
Metadata
Assignees
Labels
No labels