-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview with 55+ characters causes blank email rendering in browser #1806
Comments
Hi @Umbrien, I did some digging and after hours of inspection I found something interesting, I'll put them below: Issue SummaryThe Preview component breaks the rendering of the component under certain conditions:
Root Cause
Recommendations & Fixes
|
Thanks for your research @Shriom-Trivedi! Actually, I got this error while using literals; I've used inline expression in the provided code just for clarity. |
I might have a solution for this. This can be resolved by using simpler whitespaces in @gabrielmfern if you confirm this, then I'll open the PR for this. |
Describe the Bug
When string of
<Preview>
is longer than 55 characters, browser preview becomes a blank page.Also, after making such a string, there appears two react minified console errors in this order: 418, 422. These errors do not disappear from browser console after fixing the preview, even after restarting dev server and reopening page in same browser instance.
React-email version:
3.0.3
Which package is affected (leave empty if unsure)
@react-email/preview
Link to the code that reproduces this issue
https://github.com/Umbrien/react-email-preview-bug-report
To Reproduce
Put a string longer than 55 characters in
<Preview>
Expected Behavior
Preview does not cause errors
What's your node version? (if relevant)
20.12.0
The text was updated successfully, but these errors were encountered: