Add support for TypeScript 7 #95633
|
After upgrading Root cause
The TypeScript 7.0 Next.js's TypeScript integration resolves and loads TypeScript as a JS module (the Compiler API — Reproduction
Reverting to Expected behaviorNext.js should either:
|
Replies: 1 comment 3 replies
|
I haven't looked to much into the root issue here, but I don't think 1 is actionable just yet? We need the 7.1 release (the one with the API) I think you should be able to work with this, as per the release post https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0 : "typescript": "npm:@typescript/typescript6@6.0.1"I'll give it a go in a create-next-app project. |
Ok so this landed #95639 - Waiting for a
next@canarycut containing it!!You can read the docs on the PR, but basically, install typescript@7, and enable this experimental flag.