issueatlas · · Reply permalink
Resend fixed this in v2.0.1-canary.0 (PR #259): upgrade the resend package and rebuild, which multiple reporters confirmed resolves the build. Workaround for the broken versions: pre-render the component with renderAsync from @react-email/render and pass the result as the html property instead of react:
const html = await renderAsync(MagicLinkEmail({ url, host }));
await resend.emails.send({ from, to, subject, html });Note: one reporter found the bug reappeared in 2.1.0-canary.0, so pin the working canary if you stay on the canary channel. Source: https://github.com/resend/resend-node/issues/256
Source: https://github.com/resend/resend-node/issues/256