Skip to content

Conversation

@gabrielmfern
Copy link
Member

@gabrielmfern gabrielmfern commented Dec 12, 2025

Experimenting with solutions to see if the problem goes away


Summary by cubic

Fixes intermittent build errors by making the Tailwind wrapper version-aware: uses an async setup path for React 19 and keeps useSuspensedPromise for older React. This stabilizes builds and preserves style inlining.

  • Bug Fixes
    • Detect React 19 and await setupTailwind in an async component.
    • Fallback to useSuspensedPromise for React <19 with a stable cache key.
    • Extract Inner to share render logic and pass a typed TailwindSetup.
    • Export Tailwind via a version-gated Component for consistent behavior.

Written for commit 9a639c8. Summary will update automatically on new commits.

@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2025

⚠️ No Changeset found

Latest commit: 9a639c8

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

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@vercel
Copy link

vercel bot commented Dec 12, 2025

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

Project Deployment Preview Comments Updated (UTC)
react-email Ready Ready Preview Comment Dec 12, 2025 0:35am
react-email-demo Ready Ready Preview Comment Dec 12, 2025 0:35am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 12, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/tailwind@2728

commit: 9a639c8

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