Closed sysmat closed 8 months ago
Please add a reproduction. The issue template is very clear about that being required. Without one, we can't help fix your issue.
Id really like to help you, but please read instructions. This is what our template says:
🚨 Issues WITHOUT a valid reproduction WILL BE CLOSED!
Please provide one by:
- Using the StackBlitz reproduction template at https://stackblitz.com/fork/jsx-email-repro
Provide a minimal repository link (Read https://gist.github.com/Rich-Harris/88c5fc2ac6dc941b22e7996af05d70ff for instructions). Please use NPM for installing dependencies! These may take more time to triage than the other options.
⚠️ ZIP Files are unsafe and maintainers will NOT download them
.
Thanks, looking into it. In the meantime, a workaround is to use the Html,
Head, and
Body` components like this:
<Html>
<Head>
<Body>
<Tailwind>
example in doc is also wrong
It's not "wrong," because the example just shows assignment. It's an example, but it's not meant to be the exact code everyone should use in all places. Someone could use the code in the example docs directly with @jsx-email/render
for instance.
The twind
project is an absolute mess, and there were some blind spots that I didn't see putting that together (even though it passed all of our tests). Please use v2.4.4 for now, or if you have basic tailwind needs you can use v3.0.0. A proper fix will take a while longer.
I merged this fix and v3.0.1 will be published shortly. If you run into any more problems, downgrade to 2.4.4. It's slower, but will probably resolve any issues you run into.
@jsxp-email/cli
Version?: ^2.0.0Expected Behavior
Actual Behavior
Additional Information
import { Tailwind } from '@jsx-email/tailwind';
const Email
must beexport const Template