next.js: Upgrade next from 13.4.3 to 13.4.4 startup crash, because of websocket error in dev mode due to NODE_OPTIONS='--inspect'
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103
Binaries:
Node: 19.6.0
npm: 9.4.0
Yarn: 1.22.19
pnpm: 8.4.0
Relevant packages:
next: 13.4.5-canary.0
eslint-config-next: 13.4.4
react: 18.2.0
react-dom: 18.2.0
typescript: 5.0.4
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/julianklumpers/reproduction-app
To Reproduce
- yarn dev
- npm run dev
- pnpm dev
Describe the Bug
In the release log of 13.4.4 is a commit that says NODE_OPTIONS='--inspect' is fixed, see:
- fix: NODE_OPTIONS=‘–inspect’ in next dev for debugging: https://github.com/vercel/next.js/pull/48019
Passing NODE_OPTIONS='--inspect' causes a websocket error and the app cannot start.
Expected Behavior
Running dev with NODE_OPTIONS=‘–inspect’ starts the app without websocket error and inspect mode works correctly.
Which browser are you using? (if relevant)
Google Chrome Version 113.0.5672.92
How are you deploying your application? (if relevant)
Digital Ocean
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 20
- Comments: 20 (6 by maintainers)
Commits related to this issue
- Fix conflict between debug and http port fixes #50489 #50248 — committed to Cow258/next.js by Cow258 a year ago
- Fix conflict between debug and http port fixes #50489 #50248 — committed to Cow258/next.js by Cow258 a year ago
- Fix conflict between debug and http port fixes vercel#50489 vercel#50248 — committed to andresgutgon/next.js by andresgutgon a year ago
- Fix `NODE_OPTIONS='--inspect'` not running expected (#51467) ## Fixing a bug Fixes #50489 Fixes #48767 Fixes #45697 ## What? When running `NODE_OPTIONS='--inspect' next dev` Then go to `http://loca... — committed to vercel/next.js by Cow258 a year ago
- NODE_OPTIONS updates (#65006) <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist s... — committed to vercel/next.js by wyattjoh 2 months ago
I’m starting with
NODE_OPTIONS='--inspect' next devand still see the error as at 13.4.4 when I navigate tohttp://localhost:3000-WebSockets request was expectedConnecting my node debugger to
9229, logs this message:- ready started server on 0.0.0.0:3000, url: http://localhost:3000Looks like maybe websockets are expected for both ports - 9229 and 62395?
I can confirm I could replicate, was just a matter of passing
NODE_OPTIONS='--inspect'to my startup script.Same problem in our company since we upgrade to
13.4.4version 😭@cray2015 This issue should be fixed in the next release or above version v13.4.8-canary.3
Could be related, but I’m seeing this after upgrading from 13.4.3 to 13.4.4:
@Cow258 Thanks for the fix and information, really appreciate 🙏
Just upgrade to 13.4.5
same error in my mac. i cannot inspect server-side code. the command
NODE_OPTIONS='--inspect' next devdoes not seem to work in the current version of next 13. any suggestions from the development team?