Resend · sdk · fg-0401

Error: Cannot find module 'react-dom/server' when sending plain HTML with Resend

If you see Error: Cannot find module 'react-dom/server', the cause and the fix for Resend are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Error: Cannot find module 'react-dom/server'Require stack points at @react-email/render inside resendServer crashes at import time, before any email is sent
Cause
Older resend releases loaded React Email rendering at import time, so a backend without react-dom crashed even when it only sent html.
Fix
Upgrade to resend 4.0.1 or later. If you do pass react, install react and react-dom yourself.
Apply
npm i resend@latest
Affected
resend (Node SDK) 3.x up to 4.0.0, fixed in 4.0.1
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun