https://cypress.io logo
Extremely slow with Node 20
# i-need-help
b
I have no issue with Node v19.9.0 or below, but Cypress becomes extremely slow with Node v20.0.0, either on terminal or visual mode. I had a Github action run for 5 hours yesterday (typical time is less than 2 minutes). Should Node 20 be supported?
Cypress version: 12.10.0
Also, my terminal is spammed with
Copy code
(node:2358) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
but this also happens normally in visual mode
m
Hi @bulky-kilobyte-52158 Node.js 18 is still the Long Term Support (LTS) version and is the recommended version unless you really need functionality in later versions. Node.js 20.0.0 was released only 2 days ago, so you might expect some initial problems in general with this version. The official statement about Cypress compatibility is in https://docs.cypress.io/guides/getting-started/installing-cypress#Nodejs which says that Node.js 18+ is supported.
`github-action`is already updated to Cypress 12.10.0 and tests Node.js
20
, although this is only a smoke-test. nothing detailed. See for instance https://github.com/cypress-io/github-action/actions/runs/4746159031/jobs/8429432489. I'm not seeing the warnings which you mention, so that would need deeper investigation to find out where they are coming from. It could be from other dependencies that you have installed.
b
Thank you! I wanted to use Node 20 because weirdly I have another package that seemed to crash with Node <20, but I just updated Vite and it seems to fix the issue. So I’ll stay with Node 19 for now!
m
Which version of Vite did you move to?
b
The last one, 4.3.0
m
Good to hear to have found a working combination 👍 Thanks also for responding on your Vite version!