resend / react-email

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

Preview Mode breaks #848

Closed kleenkanteen closed 7 months ago

kleenkanteen commented 1 year ago

Describe the Bug

Same issue as #613.

Error message: image

Which package is affected (leave empty if unsure)

No response

Link to the code that reproduces this issue

https://github.com/lukevella/rallly

To Reproduce

On windows 10/11, follow the development guide in https://github.com/lukevella/rallly. At yarn dev, you will hit that issue.

Expected Behavior

No error message.

What's your node version? (if relevant)

18.16.0

kleenkanteen commented 1 year ago

Same issue happens on a Kubuntu VM inside virtualbox, bottom half of this image:

image

kleenkanteen commented 1 year ago

Downgrading react-email in rallly/packages/emails/package.json to 1.7.15 resolves the error on Kubuntu. Haven't tried windows 10.

zanzlender commented 1 year ago

On Windows 10 it first creates an emails folder with the example emails in the root, but doesn't copy it inside the generated .react-email so it breaks... After manually moving the emails it inside .react-email all works well.

kimjisena commented 1 year ago

On Windows 10 it first creates an emails folder with the example emails in the root, but doesn't copy it inside the generated .react-email so it breaks... After manually moving the emails it inside .react-email all works well.

@zanzlender did you move the whole emails folder into .react-email or you copied each individual file?

zanzlender commented 1 year ago

On Windows 10 it first creates an emails folder with the example emails in the root, but doesn't copy it inside the generated .react-email so it breaks... After manually moving the emails it inside .react-email all works well.

@zanzlender did you move the whole emails folder into .react-email or you copied each individual file?

I just moved the whole folder

gabrielmfern commented 7 months ago

This should not happen the same as of react-email@2.0.0 and should now be fixed.

Check the changelog and our blog post for more info on this.