You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cypress is unable to run typescript/esm projects when certain values are set in the tsconfig.json. This tsconfig.json does not work with ESM when setting type: "module" in the package.json.
Useful for debugging:
DEBUG=cypress:lifecycle:ProjectConfigIpc,cypress:server:register-ts-node,cypress:config:addToCypressConfig,cypress:lifecycle:child:run_require_async_child*,cypress:config:addToCypressConfigPlugin npx cypress open
### Other
_No response_
The text was updated successfully, but these errors were encountered:
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 #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
The text was updated successfully, but these errors were encountered: