Problem integrating react-email into an internal action
The resend integration is working, it's just a simple call to their SDK. But when I try to integrate react-email, the convex functions won't deploy.
My action (in
/convex/email.ts) imports and calls a function from another module (in /convex/src/email/new_share.ts). This module then imports a react-email component from a .tsx file outside of /convex (in /emails/new_share.tsx). This component needs to be provided to the resend SDK.When I run
npx convex dev -v --once, I can see .js files generated from my two files inside of /convex.I can also see
.css files generated for each - these are presumably needed by react-email. I haven't yet investigated whether react-email can build without them.Regardless, my
convex dev command fails because it doesn't want to upload CSS files. I've tried adding 'use node' in the action file, but see the same error.Any advice or guidance you can give me?
Here's some edited output that shows the error:
