-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
Current behavior
If the directory has Cypress and TypeScript 4.9 and the tsconfig.json in the parent directory has "allowImportingTsExtensions": true
, Cypress outputs the following message and hangs forever.
> [email protected] cypress:run
> cypress run
DevTools listening on ws://127.0.0.1:59272/devtools/browser/149879ae-3731-4086-862e-972b8c2e2999
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
[Object: null prototype] {
[Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]
}
Desired behavior
Cypress doesn't hang and either of:
- Shows an error that
"allowImportingTsExtensions"
is unknown for TS4.9. - Just runs without an error as no TypeScript file exists in the
foo
directory.
Test code to reproduce
- Clone https://github.com/sapphi-red-repros/cypress-fails-to-start-allow-ts-extension-ts-4.9
- Run
npm i
- Run
cd foo && npm i
- Run
npm run cypress:run
- Cypress outputs the message described above and hangs forever
Cypress Version
13.5.1, 13.6.0, 13.8.1, 13.15.1
Node version
v20.9.0, v20.18.0
Operating System
Windows 11 Pro 22H2 22621.2715
Debug Logs
No response
Other
I guess it's related to #28385.