typescript compilerOptions "module" param breaks cypress #7151
In a JS project im working on I added TS type definitions for my packages.
for this I added a
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
Cypress shouldnt be affected by the
Test code to reproduce
repo can be found here:
setting the module field in tsconfig to "System" and running:
The text was updated successfully, but these errors were encountered:
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
Downgrade to Cypress 4.3.0
DEBUG log: system-not-defined.log