Open amjed-ali-k opened 1 day ago
Have been having the same problem in Bun. Downgrading @react-email/components to 0.0.20
fixed the problem for me. Seems to have been introduced at some point after that.
Tried it myself on a blank project that just plain console logs a simple email rendered and got no error. Can you share a minimal repo that reproduces the error? @amjed-ali-k
I got this error only in production, which is running on an Ubuntu VPS. Also i bundled and minified entire code into a single file using bun bundler.
Will provide more details and minimal repo shortly.
I couldn't reproduce it locally either, happened in the oven/bun:2.0.0 docker image for me (build and then running the compiled js locally also didn't trigger the error)
+1 on this, getting same error on bun, ubuntu vps
after a bit of research bun add react@canary react-dom@canary
seems to fix my issue
@gabrielmfern You can find the reprod here.
Run bundled version using bun run start
and it will throw the error.
https://github.com/amjed-ali-k/react-email-bun-bundler-bug
here is the screenshot
Describe the Bug
I am getting this error when sending email from bun@latest.
My code sample
Which package is affected (leave empty if unsure)
@react-email/render
Link to the code that reproduces this issue
-
To Reproduce
Expected Behavior
--
What's your node version? (if relevant)
No response