build: Next.js 16.3 canary + TypeScript 7 - #31
Closed
tnunamak wants to merge 1 commit into
Closed
Conversation
Enable Next's TypeScript CLI so webpack production builds work with TypeScript 7. Assisted-by: AI Signed-off-by: Tim Nunamaker <tnunamak@gmail.com>
This was referenced Jul 23, 2026
Contributor
Author
|
Superseded by #44, which includes the TypeScript 7 / Next 16.3-canary update and its validation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades to TypeScript 7 (the Go-native compiler) by moving Next.js to 16.3 canary, which is required to build with TS 7.
Why the canary: TS 7.0 deleted the JS Compiler API (
typescript/lib/typescript.js) that Next 16.2 resolves, sonext buildfails on TS 7. Next PR #95639 (merged 2026-07-10) addsexperimental.useTypeScriptCli, which makes Next run the localtscdirectly. That flag ships innext@16.3.0-canary.93, not yet in stable 16.2.x. Moving to the canary deliberately to unblock TS 7 now; revert to 16.3 stable when it GAs.next→16.3.0-canary.93(console + site)typescript→^7.0.2(all 5 declaring packages)experimental.useTypeScriptCli: truein both next.config.mjsVerified: console
next build --webpackcompiles clean on 16.3-canary with useTypeScriptCli; site build exit 0; reference-implementation + console typechecks exit 0; test suite passes.Note: this runs a Next.js canary in the build. Deliberate tradeoff to get TS 7 now. For maintainer review.
Closes #29.