Uh oh!
There was an error while loading. Please reload this page.
build(deps-dev): bump typescript from 5.9.3 to 6.0.3 - #45
Merged
Conversation
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
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 freeto 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.
Replaces Dependabot's #43, which bumped to 7.0.2 and does not build.
The precise failure, because the obvious reading is wrong
npx tsc --noEmitpasses 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 thatnext buildlinks against for its type-check pass. There's nothing to fix on our side short of opting intoexperimental.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→ cleannpx opennextjs-cloudflare build→OpenNext build complete.Worth noting
No CI would have caught this.#43 sat with zero checks — CodeQL skipped, and
www.ymlstill has nopull_requesttrigger because #38 is blocked on my token'sworkflowscope. 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