react-email
react-email copied to clipboard
react-email CLI (email dev) does not support async Server Components
Describe the Bug
I can use the async RSCs email templates perfectly fine with something like renderHtml() or just the resend react function param. However, I can't use react-email dev script with templates that are async server components.
Which package is affected (leave empty if unsure)
react-email
Link to the code that reproduces this issue
https://github.com/dBianchii/react-email-starter-rsc-bug
To Reproduce
- Clone repo from reproduction link
- run
pnpm i - Run
pnpm dev - Go to
http://localhost:3000/preview/RSCTemplate - Cry
Expected Behavior
Server components should be supported, because they work and render normally when I use the resend package for example.
What's your node version? (if relevant)
v20.12.2