-
Notifications
You must be signed in to change notification settings - Fork 3.3k
"Couldn't find tsconfig.json" warning when no TypeScript in project #25335
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
Comments
There was a suggestion in #22273 (comment) from @segevfiner that the issue might be resolved by upgrading cypress/packages/server/package.json Line 188 in 3925ae0
to use v4. |
Thanks @MikeMcC399, looks like we just need to upgrade |
I updated the repo https://github.com/MikeMcC399/ts-warn-test, which demonstrates the issue, to Cypress The warning message I cannot yet see any qualification of this issue from the https://github.com/cypress-io/cypress/labels/routed-to-e2e team. Edit: I also confirmed that it is still reproducible on Cypress |
Thanks very much for your assessment! We didn't hear anything back from the e2e team so far. I guess they are overloaded!? |
This issue is no longer reproducible with The other related open issues continue to warrant investigation and resolution: |
Current behavior
If the npm module browser-sync is installed, a warning message is displayed when Cypress is run:
"Couldn't find tsconfig.json. tsconfig-paths will be skipped"
There are however no TypeScript files involved in the test.
Installing browser-sync 2.27.11 has caused typescript 4.9.4 to be installed.
On GitHub ubuntu-22.04 runner
Without DEBUG enabled, the log file shows:
With DEBUG enabled, the log file shows:
Run locally Ubuntu 22.04
On Ubuntu 22.04 run locally
cd tests/cy-with-browser-sync npx cypress run
no warning is output, unless
is set, in which case the warning
"Couldn't find tsconfig.json. tsconfig-paths will be skipped"
is found in the debug logs.
Run locally Windows 11
On Windows 11 run locally
cd tests/cy-with-browser-sync npx cypress run
the warning
"Couldn't find tsconfig.json. tsconfig-paths will be skipped"
is output.
Desired behavior
Installing browser-sync without any TypeScript files (*.ts, *.tsx) should not cause a warning message to appear when Cypress is run.
Test code to reproduce
See repository https://github.com/MikeMcC399/ts-warn-test (Edit: now archived.)
Workflows:
DEBUG:cypress:*
)Or clone the repository and run
cd tests/cy-with-browser-sync npx cypress run
Cypress Version
12.2.0
(not resolved in Cypress 12.8.1)
Node version
16.13.0 for GitHub runner using cypress-io/github-action
(now 16.16.0)
Operating System
ubuntu-22.04
Debug Logs
especially
https://github.com/MikeMcC399/ts-warn-test/blob/59c204bdd854cc69410ef0af683cac91a5d0fbf6/logs/3_Cypress%20run.txt#L116-L124
Other
It is not the same issue though, because in this issue a project is described which is not using TypeScript at all.
The text was updated successfully, but these errors were encountered: