-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Cypress Github Action and Vite config import all of a sudden failing in CI/CD runs #31369
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
Comments
@reintroducing Did your Node.js version change or anything else in the repo? Unless something from the GitHub Action is impacting it, I'd suspect there's a change in the env or repo that changed. The GitHub Action changes don't look like they'd impact this behavior. |
I'd suspect Node.js was updated to 20.19.0 or another higher version where Node.js included a breaking change in a minor version that we've addressed handling and will be fixed in our next version (hopefully tomorrow) #31308 |
@jennifer-shehane no node changes were made. as you can see in the GHA, the version of node being pulled is defined in our |
Could you please open up your logs and check "Current runner version". If you are seeing You can find a workaround in the above issue where other users have successfully applied environment variables env:
NODE_OPTIONS: "--no-experimental-require-module --no-experimental-detect-module"
|
@MikeMcC399 ah, yep, that is exactly the issue then, i'm seeing |
We ran into this as well and we're still using Cypress 12. Is there any way for us to work around this if we can't update to the newest Cypress version? |
Have you tried the workaround using |
@jennifer-shehane @MikeMcC399 do you know if a release today will happen? Currently our pipelines are blocked and if we dont need to implement the workaround and instead just update cypress, that would be great for us. Thank you for your efforts :) |
This comment has been minimized.
This comment has been minimized.
@MikeMcC399 If we use the Also, how can we tell which Node version the runner uses? The setup job only logs this:
|
This is the way that all JavaScript GitHub Actions work and it is explained briefly in https://github.com/cypress-io/github-action/blob/master/README.md#usage The only valid value for runs.using is currently
There is no choice about this version and it is not affected by
In the case of a Cypress test which does not fail to load the Cypress config file, the Node.js version is shown in the Cypress test summary
I could not find anywhere in the logs (not even if debug is enabled) where the JavaScript Action version of Node.js is shown if the test fails to start because of a config file issue. |
I was able to test my repro successfully with Cypress Please let us know if updating to this version resolves your issue. |
@MikeMcC399 Just updated and can confirm that the runs are now passing. Thank you! |
For us it works too 🎉 thank you! |
|
Current behavior
Four days ago we had complete support when using the Cypress GH action and everything was working as expected. Then, the next day, a run that changed nothing in relation to any of the aforementioned files, started failing (and every subsequent run after that):

When digging into the error, this is what we're seeing:

Test run fine and as expected when run locally, only in GHA do they fail in this manner.
Desired behavior
This is the last run that was successful and the logging that was produced in the same spot:

Test code to reproduce
Unfortunately as this is in a CI/CD run, I don't have a repro.
Cypress Version
14.2.0
Node version
22.13.0
Operating System
ubuntu-latest
Debug Logs
Other
This is the code for the quality gate job:
The text was updated successfully, but these errors were encountered: