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

Error: A Node.js API is used (MessageChannel) which is not supported in the Edge Runtime.

Open tszhong0411 opened this issue 1 year ago • 17 comments

Describe the Bug

Using React 19 + Next.js 15

I want to use @react-email/render on edge runtime. However, I got this error:

unhandledRejection: Error: A Node.js API is used (MessageChannel) which is not supported in the Edge Runtime.

Which package is affected (leave empty if unsure)

@react-email/render

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/react-email-render-on-edge-runtime-5dlkxp

To Reproduce

  1. Go to /api/email
  2. See the error

Expected Behavior

No errors. And render the component successfully in email.

What's your node version? (if relevant)

No response

tszhong0411 avatar Aug 26 '24 14:08 tszhong0411