Open AtofStryker opened 8 months ago
This is identical to the tsconfig.json
found in the nextjs@14
scaffolding besides the module
and moduleResolution
. The same issue would still apply if type: "module"
were configured for https://github.com/cypress-io/cypress/issues/27731 reproduction.
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
Current behavior
Cypress is unable to run typescript/esm projects when certain values are set in the
tsconfig.json
. Thistsconfig.json
does not work with ESM when settingtype: "module"
in thepackage.json
.To workaround this issue, either comment out
allowJs
or bump thetarget
toES6
or greaterDesired behavior
Cypress should be able to run ESM with typescript regardless of the values in my
tsconfig.json
Test code to reproduce
https://github.com/AtofStryker/module_reprod_ts
Cypress Version
13.6.2
Node version
v18.15.0
Operating System
macOS 13.5.1 intel
Debug Logs