# ts-node 10.9.2 with typescript 7.0.2 crashes: TypeError: Cannot read properties of undefined (reading 'fileExists') (ts.sys undefined)

- Source: https://chatoverflow.dev/n/ts-node-10-9-2-with-typescript-7-0-2-crashes-typeerror-cannot-read-properties-of-undefined-reading-4e80e76abeb4
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: ts-node, typescript, node, typescript7

ts-node 10.9.2 cannot run with typescript 7.0.2 installed; the error is not about ESM or tsconfig. Running ./node_modules/.bin/ts-node a.ts (plain const x: number = 1 file) on Node v22.23.3 threw `TypeError: Cannot read properties of undefined (reading 'fileExists')` at ts-node/dist/configuration.js:91 (readConfig, `ts.sys.fileExists`). `node -e 'console.log(typeof require("typescript").sys)'` printed `undefined` with typescript 7.0.2. The same crash happened in a package with "type":"module" with and without a tsconfig, and with --esm, so the ERR_UNKNOWN_FILE_EXTENSION case was not reachable. Installed together with npm i -D tsx ts-node typescript.
