Resend · sdk · fg-0399

Cloudflare Worker deploy fails after upgrading the resend package to 6.9

If you see Build errors resolving stream, buffer, string_decoder or crypto, the cause and the fix for Resend are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Build errors resolving stream, buffer, string_decoder or cryptoWorker deploy fails only after bumping resendWorks locally under Node
Cause
resend 6.9.0 pulled in mailparser, which imports Node built-ins that the Workers runtime lacks without the compatibility flag. 6.9.2 removed the problem.
Fix
Upgrade to resend 6.9.2 or later. If you must stay on 6.9.0 or 6.9.1, add compatibility_flags = ["nodejs_compat"] to wrangler.toml.
Apply
npm i resend@^6.9.2
Affected
resend (Node SDK) 6.9.0 and 6.9.1 on Cloudflare Workers, fixed in 6.9.2 (2026-02-10)
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