react-email icon indicating copy to clipboard operation
react-email copied to clipboard

react-email CLI (email dev) does not support async Server Components

Open dBianchii opened this issue 1 year ago • 6 comments

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

  1. Clone repo from reproduction link
  2. run pnpm i
  3. Run pnpm dev
  4. Go to http://localhost:3000/preview/RSCTemplate
  5. 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

dBianchii avatar Jul 18 '24 16:07 dBianchii