-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
fix: pass --no-experimental-require-module for node 20.19.0+ versions #31308
fix: pass --no-experimental-require-module for node 20.19.0+ versions #31308
Conversation
|
a826a9c
to
2ca31b1
Compare
@samtsai Thanks for the PR. We're expecting this logic to be removed with Cypress 15, but seems reasonable to add for now. Going to see how the tests run. |
I figured since node 20 will be around for another year it'd be helpful for others |
same logic needs to be done for |
Don't think this is the correct logic wouldn't 22.0.0 get matched by this? |
Good point, I will update it to just match within the (20.19 - 20.x) |
00a0666
to
ae43ed9
Compare
@alexsch01 I've limited the check to 20.19.0 and greater, but not including 21. |
ae43ed9
to
e2b6933
Compare
logic looks good to me |
Lets wait and see what happens from nodejs/node#57520 |
nice, the community has responded 😄 |
e2b6933
to
03cee6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for submitting a PR for this @samtsai! I am kind of surprised this made its way into a minor version of node as this seems quite disruptive 😅 .
Most the suggestions I have are minor. Let me know if you are able to address!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just waiting on CI results but everything looks good on my end! Thank you!
Additional details
Introduced by
node
latest 20.19.0 release that also enables require(esm) by defaulthttps://nodejs.org/en/blog/release/v20.19.0
Tested locally with added version check
Steps to test
Same fix and steps as #30730
How has the user experience changed?
No
PR Tasks
cypress-documentation
?type definitions
?