Verdict
Next.js 16.3.6 built and type-checked on plain TypeScript 7.0.2. Angular 22.2, Vue with vue-tsc 3.3 and NestJS 12 all failed, and all three built again on Microsoft's side-by-side setup, with tsc still on 7.0.2. Nuxt, Svelte and Astro still built on 7, but their type-check commands refused it until TypeScript 6 was installed alongside.
Tested on
- Next.js
- 16.3.6; 15.5.29 (November 10)
- Angular
- 22.2.0
- Vue
- 3.5.43, vue-tsc 3.3.11, Vite 8.3.1
- NestJS
- 12.1.1, CLI 12.0.8; re-tested 12.3.2, CLI 12.0.11
- Svelte
- SvelteKit 2.63, svelte-check 4.6.0
- Astro
- 7.3.5, @astrojs/check 0.9.10
- Nuxt
- 4.5.2, vue-tsc 3.3.11
- TypeScript
- as generated / 7.0.2 / side-by-side; 7.1.0-beta (NestJS)
- Re-tested
- November 2: Next.js 16.4.3, Angular 22.2.4, Vue 3.5.44 + vue-tsc 3.3.14, NestJS 12.3.2, Nuxt 4.6.3, SvelteKit 3.1.1 + svelte-check 4.7.8, Astro 7.4.4 + @astrojs/check 0.9.12
- OS
- Windows 11 Pro; Ubuntu on GitHub Actions
✓ Last re-run on GitHub Actions · see the run · all repros
Contents
Of seven framework starters switched to TypeScript 7.0.2, only Next.js built and type-checked unchanged. Angular, Vue (vue-tsc) and NestJS failed to build, and SvelteKit, Astro and Nuxt built but their type-check commands refused TypeScript 7. The side-by-side setup fixed every one. This page is the framework view; for single tools like ts-jest, ESLint and ts-node see TypeScript 7 tools tested, and for the upgrade steps the migration guide.
The cause is shared: TypeScript 7, the compiler rewritten in Go, shipped without the JavaScript API that many tools call into. Frameworks that run their own type-checking or compiling through that API can’t use it. I generated a fresh project with each framework’s own starter, switched it to TypeScript 7.0.2, and ran its build.
The results
| Framework | As generated | Plain TypeScript 7.0.2 | Side-by-side setup |
|---|---|---|---|
| Next.js 16.3.6 | ✅ | ✅ | not needed |
| Angular 22.2.0 | ✅ | ❌ reading 'Error' |
✅ |
| Vue 3.5 + vue-tsc 3.3.11 | ✅ | ❌ './lib/tsc' is not defined |
✅ |
| NestJS 12 (CLI 12.0.8) | ✅ | ❌ “does not expose the programmatic compiler API” | ✅ |
| SvelteKit 2.63 + svelte-check 4.6 | ✅ | ❌ type-check only: “requires both TypeScript 7 and TypeScript 6” | ✅ |
| Astro 7.3 + astro check | ✅ | ❌ type-check only: “does not currently support TypeScript 7.0” | ✅ |
| Nuxt 4.5 + nuxi typecheck | ✅ | ❌ type-check only: './lib/tsc' is not defined |
✅ |
Next.js worked on TypeScript 7 with no changes. Angular, Vue and NestJS failed their build; Nuxt, Svelte and Astro still built, but their type-check commands refused TypeScript 7. All six worked again with TypeScript 6 installed alongside 7, and tsc still reporting 7.0.2.
Next.js and TypeScript 7: works as it is
A project from create-next-app 16.3.6 built on plain TypeScript 7.0.2 with the generated config, no extra setting. Its type-check step took 1.2 seconds, against 3.8 seconds on the TypeScript 5.9.3 it was generated with (one build each).
To make sure it was really type-checking and not skipping, I added a deliberate type error:
app/page.tsx(70,7): error TS2322: Type 'string' is not assignable to type 'number'.
Failed to type check.
Next.js 15 does not
That result is for Next.js 16. On the 15 line, which still gets security releases, next build stopped on TypeScript 7.0.2. A small app on Next.js 15.5.29 gave:
TypeScript 7.0.2 is not supported by this version of Next.js. The TypeScript 7 native compiler does not provide the JavaScript compiler API that Next.js requires. Install TypeScript 6 (e.g. npm install --save-dev typescript@^6) or upgrade to a Next.js v16.2.11 or later to get support for TypeScript 7.
A fresh create-next-app@15.5.29 project, switched to TypeScript 7.0.2, failed one step earlier, while loading its own config file:
⨯ Failed to load next.config.ts, see more info here https://nextjs.org/docs/messages/next-config-error
[TypeError: Cannot read properties of undefined (reading 'fileExists')]
That is the same fileExists crash ts-node and ts-loader give on TypeScript 7.
Angular and TypeScript 7: a crash inside the compiler
ng build and ng serve both failed in under half a second:
X [ERROR] Angular compilation initialization failed. [plugin angular-compiler]
TypeError: Cannot read properties of undefined (reading 'Error')
It’s not the old “The Angular Compiler requires TypeScript” message, and the real cause is hidden behind a second failure. The full breakdown, including the Node.js version the Angular 22 CLI needs first: Angular compilation initialization failed on TypeScript 7.
Vue and TypeScript 7: vue-tsc can’t find TypeScript’s tsc
The generated npm run build runs vue-tsc --build for type-checking, and that step crashed:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tsc' is not defined by "exports" in ...\node_modules\typescript\package.json
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
ERROR: "type-check" exited with 1.
vue-tsc loads TypeScript’s own tsc from inside the typescript package, and TypeScript 7’s package doesn’t expose that file.
NestJS and TypeScript 7: the CLI says it directly
nest build stopped with a clear message that names the cause:
Error The installed TypeScript version (7.0.2) does not expose the programmatic compiler API that the Nest CLI requires. TypeScript 7.0 ships the "tsc" executable only; the compiler API is expected to return in 7.1. Please install TypeScript 6 (e.g. "npm i -D typescript@^6") until then.
Does TypeScript 7.1 fix NestJS?
Not yet. On October 31 I generated a new app with the latest Nest CLI (12.0.11, @nestjs/core 12.3.2) and switched it to the TypeScript 7.1 beta. nest build stopped with the same message, now naming the beta: The installed TypeScript version (7.1.0-beta) does not expose the programmatic compiler API that the Nest CLI requires.
The beta does bring a compiler API back, but in a new place. typescript/sync and typescript/async export API, Checker and LanguageService, while a plain require('typescript') returns only version and versionMajorMinor. The Nest CLI still looks for the old API on the main import, so it refuses. Until a Nest CLI release supports the new entry points, NestJS needs TypeScript 6 for its build. The app as generated (TypeScript 6.0.3) built fine. Angular, Vue and Svelte on the beta: TypeScript 7.1 beta tested.
Nuxt and TypeScript 7: the build works, nuxi typecheck doesn’t
A nuxi init project (Nuxt 4.5.2, minimal template), with vue-tsc and typescript added as Nuxt’s type-check needs, still built on plain TypeScript 7.0.2. nuxi typecheck failed, because it runs vue-tsc, with the same error as the Vue project above:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tsc' is not defined by "exports" in ...\node_modules\typescript\package.json
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
Svelte and TypeScript 7: svelte-check has a TypeScript 7 mode
A npx sv create project (SvelteKit 2.63) still built on plain TypeScript 7.0.2. Its type-check, npm run check (svelte-check 4.6.0), stopped with a message that names its own fix:
Error: TypeScript 7 support currently requires both TypeScript 7 and TypeScript 6 installed in your project, and requires using the --tsgo or --tsgo-experimental-api flag. You can setup both version with an npm alias via the following command.
npm install --save-dev typescript@~6 @typescript/native@npm:typescript@7
Run the command it prints, delete node_modules, install again, then check with the --tsgo flag:
npx svelte-check --tsconfig ./tsconfig.json --tsgoAstro and TypeScript 7: astro check refuses, the build doesn’t
A npm create astro project (Astro 7.3.5, minimal template) with @astrojs/check added built normally on TypeScript 7.0.2. Only astro check stopped:
[ERROR] [check] astro check does not currently support TypeScript 7.0. To continue using astro check, install TypeScript 6 instead.
The setup that fixed the rest
The same fix worked for Angular, Vue, Nuxt, NestJS and Astro (Svelte’s own command above does the same job). It’s the one Microsoft describes in the TypeScript 7.0 announcement: TypeScript 7 under another name for tsc, and a TypeScript 6 compatibility package where frameworks look for typescript.
npm install -D "@typescript/native@npm:typescript@7.0.2" "typescript@npm:@typescript/typescript6@^6.0.2"Then delete node_modules, install again, and confirm:
npx tsc --versionIt should print Version 7.0.2. In an earlier test, switching without the clean reinstall left tsc quietly on the old version.
Should you upgrade?
- Next.js 16: in this test, yes. It built, caught type errors, and the type-check was faster.
- Next.js 15: no. The build refuses TypeScript 7; stay on TypeScript 6 or 5.9.
- Svelte: yes, if you install TypeScript 6 alongside and use
--tsgo; it’s the only checker here with a TypeScript 7 mode. - Astro: the build is fine; for
astro check, keep TypeScript 6 installed alongside. - Nuxt: the build is fine; for
nuxi typecheck, same as Vue: TypeScript 6 alongside, until vue-tsc supports 7. - Angular, Vue, NestJS: not plainly. Use the side-by-side setup if you want
tsc7 for your own scripts, or stay on TypeScript 6. NestJS’s own message expects the compiler API to return in TypeScript 7.1.
Tools rather than frameworks (ts-jest, typescript-eslint, ts-node, TypeDoc, ts-loader and more) are in a separate test: Upgrading to TypeScript 7? 9 tools tested. For the config side of the upgrade, see the TypeScript 7 migration guide.
How this was tested
Each project came from its own official starter: create-next-app, ng new --defaults, create-vue with TypeScript, nest new, npx sv create (minimal, TypeScript) and npm create astro (minimal, plus @astrojs/check) and nuxi init (minimal, plus vue-tsc), using npm. Each was built as generated, then with typescript@7.0.2, then with the side-by-side setup after deleting node_modules. Angular commands ran under Node 24.15.0 through npx, because the Angular 22 CLI refuses Node 24.14.0. The others ran on Node 24.14.0. Nuxt, Svelte and Astro were tested on September 29, the others on September 28. Every error and success line above is copied from those runs.
November 2, 2026: every framework was generated again from its starter on GitHub Actions ubuntu-latest (Node 24.22.1, npm 11.19.1) and built three ways. The results matched the table above exactly: Next.js 16.4.3 built on plain TypeScript 7.0.2; Angular 22.2.4, Vue 3.5.44 with vue-tsc 3.3.14, NestJS 12.3.2, Nuxt 4.6.3, SvelteKit 3.1.1 (svelte-check 4.7.8) and Astro 7.4.4 failed on it with the same messages, and all passed on the side-by-side setup (Svelte with svelte-check --tsgo). The script and the full output are public.
November 10, 2026: Next.js 15.5.29 on GitHub Actions ubuntu-latest (Node 24.22.2, npm 11.19.1), in one run: a small test app built with TypeScript 7.0.2 and then with TypeScript 6.0.3, and a fresh create-next-app@15.5.29 project built as generated (TypeScript 5.9.3) and then with TypeScript 7.0.2. Only Next.js was run that day; the other six frameworks were last run on November 2.
Limits of this test
One fresh starter project per framework, on Windows. A large app can use features the starter doesn’t, like custom Angular builders, Nuxt on top of Vue, Astro integrations, or Next.js plugins that call the TypeScript API themselves. The timings are single builds, so read the Next.js speed-up as a direction, not a benchmark.
— N.K., end of entry No.028