https://cypress.io logo
I update to node 18 and now cypess is not woking.
# i-need-help
p
Hello, I need some help with cypress, Before my cypress code was working, and I update to node 18 cypess is not woking now and I am not getting any error message.
m
Hi @proud-answer-20715 Cypress definitely works with Node.js 18, which is the LTS version (Long Term Support) and it has been the default version on GitHub since Feb 2023. If it is not working for you, then perhaps one of your dependencies is not compatible with Node.js 18? What version of Cypress are you using? What operating system are you using? Which package manager are you using? Can you start Cypress with
npx cypress open
?
p
Hello @many-airline-45402 when I start cypress with npx cypress open, it open cypress but it dose not launch open my application and I am not getting any error message
m
Will you answer the other questions like which version of Cypress you are using? Also are you doing E2E or Component Testing?
p
Version 9.7.0 and E2E
m
Is your dev server starting correctly and can you access the application by hand in a browser without using Cypress? You can find many different examples on https://github.com/cypress-io/github-action/tree/master/examples/v9 using Cypress 9.7.0 which all work with Node.js 18 for comparison.
p
yes I can start my application in the browers with using cypress. I am using cypress-cucumber-preprocessor
m
You will probably need to try out different things, like running pure Cypress without cucumber or running Cypress with debug enabled (
export DEBUG='cypress:*
) or going back to a simple example which works and then adding complexity until it fails. Cypress 9.7.0 is a legacy version, so if you are planning a lot of new development you should also consider updating to a current 12.x version.
p
Hello @many-airline-45402 how to you capture numbers in cypress. I try this and I get NaN when I console log it
m
I'm sorry, I don't understand your question. Is Cypress now working for you with Node.js 18?
3 Views