resend / react-email

💌 Build and send emails using React
https://react.email
MIT License
12.57k stars 571 forks source link

Bun runtime fails react-mail@>2.0.0 - defaults to it without warning when node isn't installed #1429

Open codeScourge opened 3 weeks ago

codeScourge commented 3 weeks ago

Describe the Bug

I recently had an issue with React-Mail closing without any error when running with bun (installed on WSL), see reproduction here: https://github.com/codeScourge/react-email. I was able to workaround by downgrading to react-mail@1.9.0

The error seemed to be fixed by installing Node in WSL, as proposed by gabrielmfern:

I think I've figured it out. When running on WSL you might have not installed Node at all, in that case, it seems like it fails the same you mentioned. It also fails the same way when running with bun --bun dev while having Node installed. So it seems like bun falls back to running with its runtime if Node isn't installed, so basically it runs bun --bun dev. Haven't checked on their code and I couldn't find anything related to this on their docs.

Which package is affected (leave empty if unsure)

No response

Link to the code that reproduces this issue

https://github.com/codeScourge/react-email

To Reproduce

https://github.com/codeScourge/react-email, see ReadME

Expected Behavior

it should start a dev server

What's your node version? (if relevant)

No response