Skip to content

Conversation

@gabrielmfern
Copy link
Member

@gabrielmfern gabrielmfern commented Feb 2, 2026

trying out to see if the nextjs canary doesn't have errors when using the nextjs build from macos and windows


Summary by cubic

Upgrade preview-server to Next.js 16.2.0-canary.23 to test cross-platform builds on macOS and Windows. Update the react-email build to run npm install --force in .react-email so SWC bindings install reliably and logs are visible.

  • Dependencies
    • Bump next to 16.2.0-canary.23 in packages/preview-server.
    • Update pnpm-lock.yaml to include canary SWC binaries for macOS, Windows, and Linux.

Written for commit d1af7b1. Summary will update on new commits.

@gabrielmfern gabrielmfern self-assigned this Feb 2, 2026
@vercel
Copy link

vercel bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-email Ready Ready Preview, Comment Feb 3, 2026 1:04pm
react-email-demo Ready Ready Preview, Comment Feb 3, 2026 1:04pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 2, 2026

⚠️ No Changeset found

Latest commit: b1c777b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets
Name Type
@react-email/components Patch
@react-email/tailwind Patch
playground Patch

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/preview-server@2923
npm i https://pkg.pr.new/resend/react-email@2923

commit: b1c777b

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="packages/react-email/src/commands/build.ts">

<violation number="1" location="packages/react-email/src/commands/build.ts:231">
P2: `spawnSync` failures are not checked, so a failed install still triggers the “Successfully prepared” message and proceeds to `next build`. Capture the result and throw on non‑zero exit to stop early.</violation>

<violation number="2" location="packages/react-email/src/commands/build.ts:231">
P2: The install step now hardcodes `npm install --force`, ignoring the `packageManager` argument passed into `build()`. This breaks yarn/pnpm workflows and makes the install step inconsistent with the rest of the command. Restore the package-manager-aware install helper.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.


spinner.text = 'Installing dependencies on `.react-email`';
await installDependencies({
spawnSync('npm install --force', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: spawnSync failures are not checked, so a failed install still triggers the “Successfully prepared” message and proceeds to next build. Capture the result and throw on non‑zero exit to stop early.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/react-email/src/commands/build.ts, line 231:

<comment>`spawnSync` failures are not checked, so a failed install still triggers the “Successfully prepared” message and proceeds to `next build`. Capture the result and throw on non‑zero exit to stop early.</comment>

<file context>
@@ -227,10 +228,10 @@ export const build = async ({
 
     spinner.text = 'Installing dependencies on `.react-email`';
-    await installDependencies({
+    spawnSync('npm install --force', {
+      shell: true,
       cwd: builtPreviewAppPath,
</file context>

Comment on lines +231 to 235
spawnSync('npm install --force', {
shell: true,
cwd: builtPreviewAppPath,
silent: true,
packageManager,
stdio: 'inherit',
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The install step now hardcodes npm install --force, ignoring the packageManager argument passed into build(). This breaks yarn/pnpm workflows and makes the install step inconsistent with the rest of the command. Restore the package-manager-aware install helper.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/react-email/src/commands/build.ts, line 231:

<comment>The install step now hardcodes `npm install --force`, ignoring the `packageManager` argument passed into `build()`. This breaks yarn/pnpm workflows and makes the install step inconsistent with the rest of the command. Restore the package-manager-aware install helper.</comment>

<file context>
@@ -227,10 +228,10 @@ export const build = async ({
 
     spinner.text = 'Installing dependencies on `.react-email`';
-    await installDependencies({
+    spawnSync('npm install --force', {
+      shell: true,
       cwd: builtPreviewAppPath,
</file context>
Suggested change
spawnSync('npm install --force', {
shell: true,
cwd: builtPreviewAppPath,
silent: true,
packageManager,
stdio: 'inherit',
});
await installDependencies({
cwd: builtPreviewAppPath,
silent: true,
packageManager,
});

@gabrielmfern gabrielmfern deleted the chore/update-next branch February 3, 2026 13:40
Sign up for free to 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.

2 participants