Latest Docker image not compatible with ESM, failing with "configFile is invalid ... Unexpected identifier 'assert'" #29417
Labels
stage: needs information
Not enough info to reproduce the issue
Current behavior
Since yesterday I was getting this error despite not having updated anything in my code:
app-e2e
package in my npm monorepo is using ESM and ESM might have problems importing jsons, egimport foo from './foo.json' assert { type: 'json' };
however, in our own code there were no such imports. I have pinned the version used in bitbucket pipelines to the previous one:
image: cypress/browsers:node-20.12.2-chrome-124.0.6367.60-1-ff-125.0.2-edge-124.0.2478.51-1
and it did the trick. Please fix your docker images and make them ESM compatible again.
Desired behavior
No response
Test code to reproduce
package.json:
Cypress Version
cypress-13.6.6.tgz
Node version
20.11.0
Operating System
linux, specifics you should know better whatever is used in cypress/browser docker image
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: