You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from version 10.0.3 to 10.1.0 cypress shows this error.
The typescript file seems to be ignored, the project works fine with the previous.
Upgrading to any newer version than 10.1.0 does not fix it, I tried with 10.4.0 too.
The error:
> TS_NODE_PROJECT=0 cypress run
(node:94304) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:94304) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
/Users/username/Library/Caches/Cypress/10.4.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/index.ts:820
return new TSError(diagnosticText, diagnosticCodes);
^
TSError: ⨯ Unable to compile TypeScript:
error TS5083: Cannot read file '/Users/username/code/project/0'.
at createTSError (/Users/username/Library/Caches/Cypress/10.4.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/index.ts:820:12)
at reportTSError (/Users/username/Library/Caches/Cypress/10.4.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/index.ts:824:19)
at createFromPreloadedConfig (/Users/username/Library/Caches/Cypress/10.4.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/index.ts:835:36)
at create (/Users/username/Library/Caches/Cypress/10.4.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/index.ts:597:10)
at register (/Users/username/Library/Caches/Cypress/10.4.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/index.ts:564:15)
at Object.registerAndCreateEsmHooks (/Users/username/Library/Caches/Cypress/10.4.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/esm.ts:126:34)
at file:///Users/username/Library/Caches/Cypress/10.4.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/esm/transpile-only.mjs:8:7
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:409:24) {
diagnosticCodes: [ 5083 ]
}
Current behavior
After upgrading from version
10.0.3
to10.1.0
cypress shows this error.The typescript file seems to be ignored, the project works fine with the previous.
Upgrading to any newer version than
10.1.0
does not fix it, I tried with10.4.0
too.The error:
cypress/tsconfig.json
Desired behavior
Cypress runs as it did with the previous version, without any typescript compilation errors.
Test code to reproduce
Unfortunately, it's a private repository.
Cypress Version
10.1.0
Other
The only relevant change that I see in the changelog for this to fail is, but I could not find a solution.
The text was updated successfully, but these errors were encountered: