bahmutov / cypress-split

Split Cypress specs across parallel CI machines for speed
MIT License
199 stars 21 forks source link

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

Open sevilyilmaz opened 2 months ago

sevilyilmaz commented 2 months ago

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 commented 2 months ago

Could you try different versions between 1.18 and 1.23 to locate the breaking version?Sent from my iPhoneOn Apr 19, 2024, at 10:32, Sevil Yılmaz @.***> wrote: 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. (/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. (/builds/node_modules/find-cypress-specs/src/index.js:19:1) 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. (/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:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

sevilyilmaz commented 2 months ago

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

bahmutov commented 2 months ago

Great, now can you provide debug logs when running with DEBUG=cypress-split,find-cypress-specs ?

On Fri, Apr 19, 2024 at 2:02 PM Sevil Yılmaz @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/bahmutov/cypress-split/issues/271#issuecomment-2067052860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ4BJQCW5WHSQDTYILZHCDY6FL3NAVCNFSM6AAAAABGPJUAQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGA2TEOBWGA . You are receiving this because you commented.Message ID: @.***>

-- Dr. Gleb Bahmutov, PhD

Schedule video chat / phone call / meeting with me via https://calendly.com/bahmutov @. @bahmutov @.> https://glebbahmutov.com/ https://glebbahmutov.com/blog https://github.com/bahmutov

sevilyilmaz commented 2 months ago

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",
}