-
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 support: Electron is reading the wrong tsconfig.json #7043
Comments
I can recreate this. Have a cypress project with {
"compilerOptions": {
"importHelpers": true,
"module": "esnext",
"target": "es2015",
"allowJs": true
}
} Fails only in Electron with following stacktrace
|
@jennifer-shehane any progress here? Cypress 4.5.0 have the same issue. |
@izayl +1 |
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 4.4.0, using the included TypeScript support I cannot run tests in Electron.
Using Chrome still works.
The problem I'm facing seems to be related to the
tsconfig.json
file I have at the root of my project.If that file is removed, Electron starts working again.
When I try to run with Electron I'm getting this:
Desired behavior:
tsconfig.json
Test code to reproduce
Before knowing about cypress-test-tiny I created a reproducible example in cypress-example-recipes: tspmelo/cypress-example-recipes@4a310b1
If needed I can move the code to the other repo.
(And if you think it would be a good addition, I can open a working PR in cypress-example-recipes with the example used here)
Versions
The text was updated successfully, but these errors were encountered: