-
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
Unable to use TypeScript 5.2.2 with Cypress #27946
Comments
Actually it is not possible to use sourceMap with TypeScript 5.x. Try setting sourcMap to false in your tsconfig.json. |
I encountered the same error with [email protected] and node16:
The following workaround worked for me. |
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. |
This issue has been closed due to inactivity. |
steal having this problem with typescript 5.5.3 and cypress 13.13.0 |
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
When trying to run cypress (v. 13.3.0) after upgrading TypeScript to 5.2.2 I'm getting following error:
Despite the fact that in my tsconfig.json both
module
andmoduleResolution
are set to NodeNext. See SO thread: https://stackoverflow.com/questions/77202439/typescript-5-2-2-with-cypress-js . After downgrading TypeScript to 5.1.6. Cypress is working fine. My project compiles and runs on TS 5.2.2 otherwise (except for cypress tests).Desired behavior
Cypress tests should run normally.
Test code to reproduce
tsconfig.json:
cypress.config.ts contents:
Cypress Version
13.3.0
Node version
18.16.1
Operating System
macOS 13.4
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: