Closed giovannetti-eric closed 7 months ago
@giovannetti-eric thanks for the issue, will do what we can to get you going. our issue template contains a link to a stackblitz reproduction template, and we ask that people use that so we can all look at the same code together in an environment that is the same for everyone. So that would be really helpful if you have the chance to check that out and post a link.
In the mean time, installing and using @jsx-email/tailwind
directly will give you a version that should pick up those child components. The version that's in the all
package is very close to what react-email uses, and it's 50 times slower than our new work. (there will be more improvements coming this week for that as well)
Hello, I tried with @jsx-email/tailwind
: the preview is crashing, the build is working, but the template from react-email is still half broken. I have alas not the time to check why and since it's a customer's project, I can't put a reproduction without cleaning a lot the existing files. When I will have some time, I will try from scratch to do a reproduction, but it will took some time before I can do that.
OK thanks for the update. I'd love to help you resolve that, but without that reproduction, there's no way for me to tell what's crashing. We'll leave this issue open in the meantime.
As an afterthought; we don't tend to see hooks used very often in these email templates. It might be worth commenting that out and giving it a run just to see if that's the culprit.
@giovannetti-eric please give jsx-email@latest
a try. we've done a lot of work around tailwind support.
Going to close for now. Please let me know if the issue persists.
See original post here: https://github.com/resendlabs/react-email/issues/1021#issuecomment-1796181655
Hello guys, thanks for your work.
To give context, I'm migrating from react-email to jsx-email.
My email templates were working well
@react-email/components": "0.0.7"
, after upgrade to a newer version, a lot of Tailwind classes are not converted into style attributes anymore. I also tried to migrate to jsx-email, but I got the same problem.For example:
is generating
After some test, I found that the problem apply when I load custom components in an email template, for example:
Most Tailwind classes into
<Email1 />
are not generated.