-
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
fix: error loading config file with node 22.12.0 #30730
Conversation
cypress Run #58796
Run Properties:
|
Project |
cypress
|
Branch Review |
ryanm/experiment/esm
|
Run status |
Passed #58796
|
Run duration | 18m 48s |
Commit |
dd2c3a8127: update changelog
|
Committer | Matthew Schile |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
2
|
Pending |
949
|
Skipped |
0
|
Passing |
4679
|
View all changes introduced in this branch ↗︎ |
Looks good to me. |
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.
Approving for @ryanthemanuel. I wrote the code but since he opened the initial PR, he is not able to directly approve the PR.
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
Starting with node 22.12.0, experimental-require-module is now enabled by default which may cause an error loading the config file if it is loaded as an ESM.
Steps to test
Using Node
22.12.0
, setup a typescript project withtype: 'module
in thepackage.json
. In thecypress.config.ts
file, ensure to use typescript syntax, such as:How has the user experience changed?
Before:
After:
PR Tasks
cypress-documentation
?type definitions
?