Open colesanderson opened 2 weeks ago
Please, make a proper minimal reproduction here. This might be caused by various things and to properly narrow down what is wrong, I wanted something that I could quickly use to reproduce your issue.
Hey @gabrielmfern
What version of render are you on?
the newest version of render, I also tried with
resend.emails.send({
react: <ContactEmail name={name} email={email} message={message} />,
});
and
const emailHtml = ReactDOMServer.renderToString(<ContactEmail name={name} email={email} phone={phone} message={message} />);
const { error } = await resend.emails.send({
html: emailHtml,
});
Got a reproduction going, and it seems like installing the individual packages makes the error go away. Not sure exactly what might be causing this, if it's the exports that components does, or if it's because of Tailwind itself being so large at the moment.
Does not seem related to resend
at all as well, as I could reproduce with just an action that renders the email template.
This seems to be caused by Tailwind by trying to import the components individually until it errors on deploy. Pretty sure this is equivalent to #1101 and should be fixed by #1383.
Describe the Bug
I keep getting error with Publish to Cloudflare Pages with Github Actions when using the
@react-email/components
.Which package is affected (leave empty if unsure)
@react-email/components
Link to the code that reproduces this issue
no link
To Reproduce
Code
Expected Behavior
Expecting for deploy to work or output more helpful error?
What's your node version? (if relevant)
v20.10.0