Your configFile is invalid: tests/cypress/cypress.config.js - TS install #27441
Unanswered
Mehdi-Skills
asked this question in
Questions and Help
Replies: 1 comment 1 reply
-
Hey, I just encountered the same problem, and I found out that it's because the 'module' configuration in tsconfig.json file is set to 'commonjs', so I change it to 'ESNext', and it's done. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm looking to implement cypress on an existing front-end project.
I'm encountering an error with the config File, which is invalid.
I've installed Cypress as recommended in the documentation.
Here's my file tree:

I have the following typescript configuration file tsconfig.json at the root of the project:

Here's my cypress.config.js file in the cypress folder:

The cypress error is strange here's the error reported on Cypress when opening via a "npx cypress open":

If I put the tsconfig.json include like this :

I have an error in my tsconfig file : Unknown compiler option 'include'.ts
but when I relaunch cypress via a "npx cypress open", I get this message:

I don't understand and I think my problem is a file configuration problem with TS, but I'm stuck.
Thank you in advance for your help
Beta Was this translation helpful? Give feedback.
All reactions