[GH-ISSUE #882] Error: react-dom/server is not supported in React Server Components; when using @react-email/render in route.ts #193

Open
opened 2026-05-06 12:38:02 +02:00 by BreizhHardware · 0 comments

Originally created by @mofax on GitHub (Apr 24, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/882

I am trying to generate HTML for an email using render() from the React Email library within an app/api/send/route.ts handler.

I am seeing this.

Error: react-dom/server is not supported in React Server Components.

Which is hard to debug since this is a route and not a component.

Originally created by @mofax on GitHub (Apr 24, 2026). Original GitHub issue: https://github.com/cloudflare/vinext/issues/882 I am trying to generate HTML for an email using `render()` from the React Email library within an `app/api/send/route.ts` handler. I am seeing this. ``` Error: react-dom/server is not supported in React Server Components. ``` Which is hard to debug since this is a route and not a component.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#193
No description provided.