Skip to content
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

Error: File '../../tsconfig.base' not found #271

Open
sevilyilmaz opened this issue Apr 19, 2024 · 4 comments
Open

Error: File '../../tsconfig.base' not found #271

sevilyilmaz opened this issue Apr 19, 2024 · 4 comments

Comments

@sevilyilmaz
Copy link

I started getting this error after bumping the version from 1.18.5 to 1.23.0. It seems like it's coming from find-cypress-specs but I couldn't pinpoint it.

Error: File '../../tsconfig.base' not found.
    at je (/builds/node_modules/get-tsconfig/dist/index.cjs:3:9102)
    at te (/builds/node_modules/get-tsconfig/dist/index.cjs:3:10066)
    at ie (/builds/node_modules/get-tsconfig/dist/index.cjs:3:10781)
    at Object.$e [as getTsconfig] (/builds/node_modules/get-tsconfig/dist/index.cjs:3:10886)
    at Object.<anonymous> (/builds/node_modules/tsx/dist/cjs/index.cjs:1:726)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/builds/node_modules/find-cypress-specs/src/index.js:19:1)
    at Module._compile (node:internal/modules/cjs/loader:[125](https://xxx/-/jobs/203594291#L125)4:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/builds/node_modules/cypress-split/src/parse-inputs.js:4:22)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:[130](https://xxx/-/jobs/203594291#L130)8:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
@bahmutov
Copy link
Owner

bahmutov commented Apr 19, 2024 via email

@sevilyilmaz
Copy link
Author

The error starts appearing from version 1.19.2 which bumps find-cypress-specs version from 1.41.4 to 1.42.0

@bahmutov
Copy link
Owner

bahmutov commented Apr 19, 2024 via email

@sevilyilmaz
Copy link
Author

That doesn't give any other information as the command fails on L19 in find-cypress-specs where tsx introduced as a replacement of ts-node.

tsx uses get-tsconfig to find tsconfig files which seems couldn't find the base config where we add it to out tsconfig files as extension like this:

{
  "extends": "../../tsconfig.base",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants