with-turbopack occasionally throws "Error during SSR rendering - timed out waiting for the Node.js process to connect" when navigating pages
See original GitHub issueVerify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Using Windows 10 with WSL2:
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP Fri Apr 2 22:23:49 UTC 2021
Binaries:
Node: 16.17.1
npm: 8.15.0
Yarn: N/A
pnpm: 7.14.0
Relevant packages:
next: 13.0.0
eslint-config-next: 13.0.0
react: 18.2.0
react-dom: 18.2.0
Which example does this report relate to?
with-turbopack
What browser are you using? (if relevant)
Firefox 107.0b4
How are you deploying your application? (if relevant)
No response
Describe the Bug
The new with-turbopack
example occasionally throws during dev:
error - [rendering] [root of the dev server]/[CURRENT ROUTE TRYING TO RENDER]
Error during SSR Rendering
timed out waiting for the Node.js process to connect
Most of the time the page does end up rendering successfully and an event - updated in _xxx_ms
gets logged, but on some occasions it throws the above error in the console while still rendering the page. I can still navigate to other pages, but the console stops logging events. This can happen on all pages when I navigate to them.
Sometimes the error blocks the entire page from rendering by throwing an error in the browser, although this only occurred twice:
I cannot figure out a pattern that causes this error, the pages load fine most of the time but occasionally throw this error unexpectedly.
Expected Behavior
On navigating, a page should render without errors, echoing an event
to the console with the amount of time it took to update.
To Reproduce
- Create a new project using the example.
pnpm create next-app --ts --example with-turbopack
- Run the dev command (
--turbo
is included in thedev
script by default in this example.)
pnpm run dev
- Go to http://localhost:3000 in the browser and click the links in the sidebar to navigate to different pages. 3.a. Pay attention to the console as the error might be thrown even though the page rendered.
- After some successful navigation events this error might be thrown (multiple times if you continue navigating):
4.a On some occasions the error can be thrown in the browser as well, preventing the page from rendering.
Issue Analytics
- State:
- Created a year ago
- Reactions:13
- Comments:24
16.18.0 worked for windows! Does not work with M1 MAC
Switching from node14 to node16 fixed this for me.
using nvm
nvm use 16