resend / react-email

💌 Build and send emails using React
https://react.email
MIT License
12.67k stars 583 forks source link

[TailwindCSS]: Weird import behavior #1367

Closed gfffrtt closed 2 months ago

gfffrtt commented 2 months ago

Describe the Bug

I am working on this project and when trying to import the <Tailwind /> component from @react-email/components, it says that it doesn't exist, even after installing all modules, re installing, cleaning the whole repo for the service, and yet, still can't seem to import it.

image

Which package is affected (leave empty if unsure)

@react-email/components, @react-email/tailwind

Link to the code that reproduces this issue

https://github.com/gfffrtt/bank

To Reproduce

Clone repository and remove the // @ts-expect-error from the file locate in services/mail/src/mail/templates/sign_in.tsx.

Expected Behavior

Not have to add an comment to expect a unknown import error.

What's your node version? (if relevant)

I am using bun

gabrielmfern commented 2 months ago

Tried reproducing but just couldn't. Could this be because of your version of bun here — i.e. something that has been fixed on the latest?

Going to close this as not planned for now as I couldn't reproduce.