You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
client-v3: tsconfig.e2e.json fails with TS5107 (moduleResolution node10 deprecated) and E2E TypeScript is never type-checked #1452
Nothing runs this config, neither a package script nor CI, so the Playwright E2E TypeScript (e2e/**/*.ts, playwright.config.ts) is currently never type-checked. The suite still runs because Playwright compiles the tests without type-checking them, so type errors in E2E code go unnoticed.
Reproduced on dev at 84e6493. Neither tsconfig.e2e.json nor tsconfig.json has changed since, so it still applies on the current dev (d9718b8). It was spotted by the automated review on #1427 and predates that PR.
Details
client-v3/tsconfig.e2e.json (unchanged since #1084):
"moduleResolution": "node" is the legacy node10 mode, which TypeScript 6 deprecates; client-v3 is on typescript ^6.0.3.
The base tsconfig.json uses "module": "ESNext" and "moduleResolution": "bundler", and its include covers only src/**.
The typecheck script is tsc --noEmit -p tsconfig.json, and CI (nodelint.yml → run-typecheck-client-v3) runs only that.
git grep tsconfig.e2e finds no references in scripts or workflows.
Suggested fix
Update tsconfig.e2e.json to supported settings. Likely options:
drop the overrides and inherit ESNext / bundler from the base, or
use "module": "NodeNext" and "moduleResolution": "NodeNext", matching how Playwright loads the files.
Avoid ignoreDeprecations unless it's just a stopgap.
Run pnpm exec tsc --noEmit -p tsconfig.e2e.json and fix any real type errors it exposes in e2e/. It hasn't been running, so some may have built up.
Wire it in so it can't silently rot again. For example, extend the typecheck script (tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.e2e.json) or add a typecheck:e2e script and run it in nodelint.yml.
Check the legacy client/ for an equivalent E2E/test tsconfig with the same deprecated setting.
Activity
Type-check e2e tsconfig and fix TS5107 under TS6 (#1453)
Tim020 commentedon Oct 19, 2026
Fixed in #1453 (merged to dev).