Repository navigation
fix(ui): bump next to 16.4.0 so the preview server runs on Next.js 16.4 - #3789
Merged
felipefreitag merged 3 commits intoOct 15, 2026
Merged
Conversation
@react-email/ui ships a prebuilt .next that only loads on the Next.js minor it was built with. Next 16.4 reads a new server/preview-props.json manifest that the 16.3.3 build does not emit, so `email dev` failed with ENOENT in projects that dedupe next to 16.4. Rebuilding against 16.4.0 emits the manifest and matching server chunks. Fixes resend#3785 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
@AmineBenzaazaa is attempting to deploy a commit to the resend Team on Vercel. A member of the Team first needs to authorize it. |
Next 16.4.1 fixes security advisories that affect every 16.x release up to 16.4.0, with no 16.3 backport: GHSA-673q-mjm6-r5xr, GHSA-2464-fhr4-w9xw and GHSA-p3m5-59mp-jv5r. A preview server built on 16.4.1 also runs in projects that dedupe next to 16.4.0.
馃 Changeset detectedLatest commit: 4571b97 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
felipefreitag
approved these changes
Oct 15, 2026
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.
Fixes #3785
Problem
@react-email/uiships a prebuilt.nextthat only loads on the Next.js minor it was built with, and it pinsnextto exactly16.3.3. Next.js 16.4 reads a newserver/preview-props.jsonmanifest duringapp.prepare()that a 16.3 build doesn't emit. Projects on Next 16.4 that dedupenext(e.g."@react-email/ui>next": "$next") therefore fail onemail devwith:Adding the manifest by hand isn't enough (the 16.3 server chunks then 500 on 16.4), so the preview app has to be rebuilt against 16.4.
Fix
Bump
nextin the catalog to16.4.0(currentlatest) and update the lockfile. The lockfile diff only touchesnext,@next/*, and next's ownsharp/@img/*deps.Verification
react-email+@react-email/ui, installed them in a project onnext@16.4.0with the override from the issue, andemail devfailed with the ENOENT above.@react-email/uibuilds on Next.js 16.4.0 and emits.next/server/preview-props.json. With the repacked tarballs in the same project,email devstarts,/,/preview/<template>and?view=sourcereturn 200 with the rendered email, and/_next/staticchunks load.email buildalso succeeds on Next.js 16.4.0.packages/uitests pass (111/111),tsc --noEmitis clean inpackages/uiandpackages/react-email, andbiome checkis clean.apps/webandapps/demo, which also takenextfrom the catalog; leaving those to CI.馃 Generated with Claude Code
Summary by cubic
Fixes
email devfailing on Next.js 16.4 by bumping the catalog'snextto 16.4.1 so@react-email/ui's prebuilt preview server matches the runtime it ships with.Next 16.4 reads a
server/preview-props.jsonmanifest duringapp.prepare()that the 16.3 build doesn't emit, soemail devcrashed withENOENTwhennextwas deduped to 16.4. Rebuilding against 16.4.1 emits the manifest and compatible server chunks, and a build on 16.4.1 also runs in projects that dedupe to 16.4.0. 16.4.1 additionally fixes three Next security advisories with no 16.3 backport (GHSA-673q-mjm6-r5xr, GHSA-2464-fhr4-w9xw, GHSA-p3m5-59mp-jv5r). The lockfile diff only touchesnext,@next/*, andsharp/@img/*.Written for commit 4571b97. Summary will update on new commits.