Every build (*, typescript) CI job currently fails, on every PR that triggers them. Each test dies at the Execute stage, before any ANTLR code runs, with:
TypeError: Cannot read properties of undefined (reading 'fileExists')
at readConfig (.../ts-node/dist/configuration.js:91:33)
Cause
The test harness installs its toolchain unpinned (TsNodeRunner.java):
Processor.run(new String[] {NPM_EXEC, "--silent", "install", "-g", "typescript", "ts-node", "webpack", "webpack-cli"}, null);
npm's typescript@latest is now the TypeScript 7 (Go-based) rewrite, which no longer exposes the ts.sys internal API that ts-node 10.9.x (unmaintained since 2022) reaches into — ts-node crashes on startup before compiling anything.
Evidence it's the toolchain, not the tree
Fix options
- Swap ts-node for tsx (esbuild-based, no dependency on TypeScript's compiler API, actively maintained) — structurally immune to TypeScript's release cadence. PR to follow.
- Pin the install (
typescript@5 ts-node@10.9.2) — also goes green today, but freezes the tests to an aging TypeScript under an unmaintained runner.
Diagnosis developed with AI assistance (Claude Fable 5); I reviewed and reproduced it.
Every
build (*, typescript)CI job currently fails, on every PR that triggers them. Each test dies at the Execute stage, before any ANTLR code runs, with:Cause
The test harness installs its toolchain unpinned (TsNodeRunner.java):
npm's
typescript@latestis now the TypeScript 7 (Go-based) rewrite, which no longer exposes thets.sysinternal API that ts-node 10.9.x (unmaintained since 2022) reaches into — ts-node crashes on startup before compiling anything.Evidence it's the toolchain, not the tree
devtip7d5770395passed all three typescript jobs on 2026-02-16 (run 22078029856); the identical tree fails them today.antlr4): ts-node undertypescript@7.0.2fails with exactly the CI error; the same file runs fine under an executor that doesn't use the TypeScript compiler API.Fix options
typescript@5 ts-node@10.9.2) — also goes green today, but freezes the tests to an aging TypeScript under an unmaintained runner.Diagnosis developed with AI assistance (Claude Fable 5); I reviewed and reproduced it.