Describe the Bug
Hi there,
I just encountered this issue after trying to deploy my app.
I'm using TanStack start with Bun.
It works very well on dev mode but after building the prod, the error appear
error: Cannot find module '@react-email/render'
Things I tried without success :
- install
@react-email/render
- downgrade resend sdk (6.x.x, 5.x, 4.x)
- use pnpm and node LTS
- update bun (from 1.2.2 to latest ATM 1.2.9)
I made a repo with a simple repro using the tanstack starter
Link to the code that reproduces this issue
https://github.com/DCKT/resend-react-email-error
To Reproduce
- import somewhere in the project the
@react-email/components
- build the app through
bun run build
- launch the app
bun run .ouput/server/index.mjs
- access http://localhost:3000
The error is raised directly.
Expected Behavior
Should not crash on production build
What's your node version? (if relevant)
No response
Describe the Bug
Hi there,
I just encountered this issue after trying to deploy my app.
I'm using TanStack start with Bun.
It works very well on dev mode but after building the prod, the error appear
Things I tried without success :
@react-email/renderI made a repo with a simple repro using the tanstack starter
Link to the code that reproduces this issue
https://github.com/DCKT/resend-react-email-error
To Reproduce
@react-email/componentsbun run buildbun run .ouput/server/index.mjsThe error is raised directly.
Expected Behavior
Should not crash on production build
What's your node version? (if relevant)
No response