Skip to content

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

@tszhong0411

Description

@tszhong0411

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions