Commit d89f736
Fix build under typescript@7 via useTypeScriptCli
typescript@7 is the native Go port and no longer exposes the JS compiler
API that Next's built-in type checker calls into, so `next build` failed
with "TypeScript 7.0.2 does not provide the compiler API required by
Next.js". Setting experimental.useTypeScriptCli makes Next shell out to
the tsc binary instead.
Note that typescript.ignoreBuildErrors is not a workaround here -- the
build still fails after printing "Skipping validation of types".
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 13c0451 commit d89f736
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
0 commit comments