mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/194
Author: @StringerBell69
Created: 2/28/2026
Status: ✅ Merged
Merged: 2/28/2026
Merged by: @southpolesteve
Base:
main← Head:fix/build-react-version-check📝 Commits (1)
ffb6f44fix: add React version check to vinext build📊 Changes
1 file changed (+15 additions, -1 deletions)
View changed files
📝
packages/vinext/src/cli.ts(+15 -1)📄 Description
#185 — Add React version check to
vinext buildfor App Router compatibilitySummary
getReactUpgradeDeps()check fromvinext deployintobuildApp(), ensuring React is upgraded to≥19.2.4before any App Router buildvinext build+wrangler deploymanually would hit a crypticmoduleMapcrash at runtime withreact@19.2.0Details
Root cause
vinext deployalready guarded againstreact-server-dom-webpackcompatibility issues viagetReactUpgradeDeps(), butvinext buildhad no equivalent check. Users who bypassedvinext deployand ran the build + deploy steps manually fell through this gap with no warning.Failing behavior (before)
Triggered at runtime on deployed Workers when
react@19.2.0was present — no build-time warning, no actionable error.Changes
buildApp()— addedgetReactUpgradeDeps()call before the App Router build step; React<19.2.4is now automatically upgraded at build time, matching the behaviour already present invinext deployWhat's not changed
vinext deploylogic — the existing check there is unchangedCloses
moduleMapruntime error on deployed Workers (react@19.2.0)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.