-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress 9.0.0 + Node 17.1 (Win 11) Crashes #18914
Comments
What is the code that you're running in your plugins file? It sounds like the code you are executing in that file may be incompatible with Node 17.1+. |
As stated, literally nothing. It's a completely clean, vanilla, virgin, [insert any other applicable adjective] install of Cypress. The file contents are literally:
|
Same thing here (on mac), good point about it being limited to Node 17 only. We had the same issue in our apps when moving to node 17 (not cypress related). You'll need (I added this on the terminal before launching cypress):
I found that here when troubleshooting our local app building issue: webpack/webpack#14532 Whatever is happening under the hood in Cypress is due to this same underlying ssl change in node 17 I guess? Adding that environment variable fixed Cypress 9 for me on node 17. At the very least, could this underlying error be bubbled up for us? Something is swallowing it. |
Same here Windows10 / Cypress9.0.0 / Node17.0.1 |
I have the same problem. As above: |
Same here. Vanilla install of Cypress 9.0.0 + node 17.0.1. Can't run any (even dummy) test, because of this error. Downgrading Cypress to 8.7.0 resolved that issue. |
Same problem for us on macOS and Node.js 17.1.0 with Cypress 9.0.0 and 9.1.0. |
As another temporary workaround, you can also set With that said, these are just workarounds, and I'm tracking down the root cause now. |
Ok, so looking into the issue with cypress + node 17, it appears the following:
Adding Anyway, these are just today's research notes. The workarounds remain the same - set |
I am facing with the same error with Cypress 9.1.0. |
In cypress.json. |
The code for this is done in cypress-io/cypress#19094, but has yet to be released. |
This should go out early next week in the 9.1.1 patch release. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
Setup:
npx cypress cache clear && npx cypress install && npx cypress open
) - no other config or setup changes at allWhen I use Cypress 9.0.0 and Node 17.1 (i.e. latest versions), Cypress opens up and displays the sample tests, but clicking any one of them results in the following error (non-important folder names redacted for privacy):
Title: Error running plugin
Message: The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (
[appDir]\cypress\plugins\index.js
)Stack trace:
If I downgrade either/both to Cypress 8.7, or Node 16.13 (LTS version), then everything works fine and as expected, i.e.
Desired behavior
Cypress 9.0 should run as expected with Node 17.1
Test code to reproduce
No test code required, it'll fail running the examples
Cypress Version
9.0.0
Other
No response
The text was updated successfully, but these errors were encountered: