Skip to content

build(deps-dev): bump typescript from 5.9.3 to 6.0.3 - #45

Merged
z33b0t merged 1 commit into
mainfrom
deps/typescript-6
Jul 29, 2026
Merged

build(deps-dev): bump typescript from 5.9.3 to 6.0.3#45
z33b0t merged 1 commit into
mainfrom
deps/typescript-6

Conversation

@z33b0t

Copy link
Copy Markdown
Contributor

Replaces Dependabot's #43, which bumped to 7.0.2 and does not build.

TypeScript 7.0.2 does not provide the compiler API required by Next.js.
Enable experimental.useTypeScriptCli in your Next.js config to use the
TypeScript CLI, or install TypeScript 6 instead.
Next.js build worker exited with code: 1

The precise failure, because the obvious reading is wrong

npx tsc --noEmit passes clean on 7.0.2 — our source is fine under TS 7. TypeScript 7 is the native (Go) port and drops the JavaScript compiler API that next build links against for its type-check pass. There's nothing to fix on our side short of opting into experimental.useTypeScriptCli, which isn't worth doing to chase a major.

6.0.3 is the newest release Next 16 accepts. Type-checks clean and builds.

Verification

Both run locally against a checkout of main + this bump:

  • npx tsc --noEmit → clean
  • npx opennextjs-cloudflare buildOpenNext build complete.

Worth noting

No CI would have caught this.#43 sat with zero checks — CodeQL skipped, and www.yml still has no pull_request trigger because #38 is blocked on my token's workflow scope. A green-looking Dependabot PR that breaks the production build is precisely the scenario #16 describes, and it turned up within an hour of enabling Dependabot. Merging #38 should be the priority.

Closes#43

Dependabot proposed 7.0.2 (#43), which does not build. Next 16 rejects it:
TypeScript 7.0.2 does not provide the compiler API required by Next.js.
Enable experimental.useTypeScriptCli in your Next.js config to use the
TypeScript CLI, or install TypeScript 6 instead.
Worth being precise about what's wrong, because the obvious reading is wrong:
`tsc --noEmit` passes clean on 7.0.2, so the source is not the problem. TS 7 is
the native port and drops the JS compiler API that `next build` links against
for its type-check pass. Nothing in this repo can fix that from our side short
of opting into experimental.useTypeScriptCli.
6.0.3 is the newest version Next accepts, and it builds and type-checks clean.
Verified: `tsc --noEmit` clean, and a full `opennextjs-cloudflare build`
succeeds. Note none of this is checked by CI yet — www.yml has no
pull_request trigger until #38 lands (#16), which is exactly how a broken
toolchain bump would otherwise have reached production unnoticed.
Closes#43
@z33b0t
z33b0t merged commit b79f3d8 into mainJul 29, 2026
6 checks passed
@z33b0t
z33b0t deleted the deps/typescript-6 branch July 29, 2026 16:45
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@z33b0t