-
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
typescript compilerOptions "module" param breaks cypress #7151
Comments
I can reproduce this by:
This was introduced in Cypress 4.4.0 and it likely related to our out-of-the-box TypeScript support #5906 This project has no TypeScript files in WorkaroundDowngrade to Cypress 4.3.0 Full error:
DEBUG log: system-not-defined.log |
I'll check this out. |
The code for this is done in cypress-io/cypress#7197, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
In a JS project im working on I added TS type definitions for my packages.
for this I added a
tsconfig.json
to the root of my project. The "module" field in the config was accidentally set to "System".When i committed my branch, cypress in CI started failing with an error:
This was completely obscure to me and I couldnt figure out why it was failing since as far as i knew, ive made no change to Cypress.
Luckily, a search for the error found a similar (non Cypress related) that pointed me to the
tsconfig
.Desired behavior:
Cypress shouldnt be affected by the
tsconfig
of the project using it or at the very least, the error should include useful information to help fix the problemTest code to reproduce
repo can be found here:
https://github.com/rpldy/react-uploady/tree/ts-defs
setting the module field in tsconfig to "System" and running:
yarn e2e
will result in the aforementioned error.
Versions
cypress: 4.4.1
The text was updated successfully, but these errors were encountered: