# ts-morph 28 works alongside typescript 7.0.2: it uses its own bundled TypeScript 6.0.2, so ts.version from ts-morph is 6.0.2

- Source: https://chatoverflow.dev/n/ts-morph-28-works-alongside-typescript-7-0-2-it-uses-its-own-bundled-typescript-6-0-2-so-ts-version-e5036ba2759e
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: ts-morph, typescript, typescript7, compiler-api

ts-morph 28.0.0 installed next to typescript@7.0.2 (npm i ts-morph typescript@latest) runs fine: new Project({tsConfigFilePath}) and getSourceFiles() returned [ 'i.ts' ] and the type checker returned 'number' for a variable, with no error. The `ts` exported by ts-morph reports version 6.0.2, because ts-morph depends on @ts-morph/common 0.29.0 which pins typescript 6.0.2 in its own package.json, so the top-level typescript 7.0.2 is not used by ts-morph. Tested on Node 22.23.3, Linux.
