-
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
Cypress cannot start with importHelpers and allowJS TypeScript options #7503
Comments
I'm getting the same error using any version that's >= 4.4.0. Works fine in 4.3.0. |
I'm having the same issue with version 4.7.0 and any typescript version higher than 3.5.1 - at least that's the latest I found that everything is fine. @agg23 try with this ts version |
Same here.. the error message for 4.4.0 is a bit different then 4.7.0
|
I'm not able to reproduce this error with the information provided. Please provide a full example of this failing and the steps you took to see the error (
it('test', () => {
expect(true).to.be.true
})
{
"compilerOptions": {
"importHelpers": true,
"allowJs": true
}
} |
@jennifer-shehane |
I can reproduce the issue in here: |
@boxmein Thanks! This repo does reproduce the issue as described. ReproNo cypress files/folders required.
{
"devDependencies": {
"cypress": "4.7.0",
"typescript": "3.9.3"
}
}
{
"compilerOptions": {
"importHelpers": true,
"allowJs": true
}
} 4.3.04.4.0Stack trace:
|
@jennifer-shehane Thank you for the thorough testing & bisection! |
This comment has been minimized.
This comment has been minimized.
I fixed my own setup by not using "importHelpers" anymore. It might be possible to side-step this problem by setting the importHelpers flag to false. |
According to the docs (https://docs.cypress.io/guides/tooling/typescript-support.html#Configure-tsconfig-json) we should be able to use a |
I had the same issue when upgrading Cypress 4.3.0 -> 4.10.0. I used the default @boxmein Thank you for providing this workaround! |
This is being addressed by #7982 and should be released in Cypress v5.0. |
The code for this is done in cypress-io/cypress#7982, but has yet to be released. |
Hello... anyone been able to verify if this is fixed in 5.0? (I'm still haveing several issues keeping me at 4.3). |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v5.0.0, please open a new issue. |
Current behavior:
Attempting to launch Cypress with this tsconfig results in the following exception:
Removing either flag fixes the error.
tslib
is forcibly installed to guarantee there is no issue resolving it.This appears to occur regardless of what is in the Cypress tsconfig, so as long as the parent project contains this config, Cypress cannot start.
Versions
Cypress 4.6.0 - 4.7.0
The text was updated successfully, but these errors were encountered: