shellscape / jsx-email

Build emails with a delightful DX
https://jsx.email
MIT License
902 stars 28 forks source link

Unable to preview email templates #90

Closed roguesherlock closed 7 months ago

roguesherlock commented 7 months ago

Expected Behavior

being able to view template

Actual Behavior

unable to view template

Additional Information

New Project

I just created a sample project with create jsx-email utility but I'm unable to preview the templates.

image

Existing Project

And I get a different error If I add jsx email to an existing nextjs project

image
shellscape commented 7 months ago

thanks for the issue. would be happy to help you, but please follow the instructions in the issue template and create a reproduction

roguesherlock commented 7 months ago

thanks for the issue. would be happy to help you, but please follow the instructions in the issue template and create a reproduction

hey sorry my internet was shody. here's a sample stackblitz with nextjs and jsx email. I just followed instructions from the jsx.email docs. you can run npx email preview ./emails to preview emails

https://stackblitz.com/edit/stackblitz-starters-8nk6gq?file=emails%2FBatmanEmail.tsx

shellscape commented 7 months ago

thanks, that might be a docs failure there. will have a fix for you today, in a few hours when my kids take a nap.

shellscape commented 7 months ago

transient dependency started resolving differently for some reason. working on a fix.

shellscape commented 7 months ago

@roguesherlock confirmed jsx-email@1.1.1 fixes the issue for your reproduction. please let us know if you run into anything else.