Open razzeee opened 3 weeks ago
Can't quite reproduce this, are you sure it isn't something on your side?
Found out what it is, the issue is because you don't have Tailwind installed on your backend. What happens is that we bundle Tailwind on our side, that means that after compilation, Tailwind is not something that can be imported anymore. If it was a dependency, it could cause issues, but I'm going to explore on that a bit more later to make sure it wouldn't be fine.
The problem, then, is that Tailwind is not installed, and its types are not bundled in, meaning that it can't find the types and breaks like that. Now, I think this only happens after the upgrade to react-email@3.0.0
because it used to include Tailwind as a dependency and doesn't anymore, as we have optimized it a lot.
Thanks for pointing this out! Will take a look at fixing.
Could not have done it without a link to the code that reproduces, thanks for that.
I have just had the same issue when building after upgrading to react-email@3.0.1. I have added ``@ts-expect-error```just above the config prop until the issue is fixed :)
Describe the Bug
Setting a config for tailwind errors out with the 3.0 release
https://github.com/flathub-infra/website/pull/3763
https://github.com/flathub-infra/website/actions/runs/10522369333/job/29154863956?pr=3763
Which package is affected (leave empty if unsure)
@react-email/tailwind
Link to the code that reproduces this issue
https://github.com/flathub-infra/website/pull/3763
To Reproduce
Try to use
Expected Behavior
It should probably still keep working as it is. Otherwise, there should have been instructions on the change and the docs on the website also would need an update.
What's your node version? (if relevant)
No response