TypeScript 7 breaks ESLint, ts-jest and ts-morph due to unstable programmatic API
TypeScript 7 introduces tsgo, a Go-based port of the TypeScript compiler under Project Corsa, delivering roughly 10x faster builds compared to the JavaScript predecessor. However, the programmatic API that tools like typescript-eslint, ts-jest, and ts-morph rely on to perform AST traversal and type introspection is not yet stable and is expected to land only in version 7.1. As a result, typescript-eslint fails at install due to peer dependency conflicts, ts-jest breaks with transform errors, and ts-morph may silently produce incorrect output. Developers are advised to keep TypeScript pinned to 6.x for existing tooling while installing the separate @typescript/native-preview package solely for fast type-checking in CI pipelines. The side-by-side setup is recommended until TypeScript 7.1 delivers a stable programmatic API that the broader ecosystem can safely adopt.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in