carstenlebek / svelte-email

Write and send emails with Svelte ✉️🚀
https://svelte-email.vercel.app
MIT License
481 stars 36 forks source link

Preview component maximum text length - RangeError: Invalid count value #14

Open ScholliYT opened 1 year ago

ScholliYT commented 1 year ago

Putting a text longer than 150 chars in the Preview component (which is not recommended) results in a RangeError: Invalid count value. The error could be more descriptive in the sense that a length of 90 is recommended and 150 is the maximum.

https://github.com/carstenlebek/svelte-email/blob/c7456ba19b464c253f0f8a13d039e11f5f4d04b8/src/lib/components/Preview.svelte#L12

cmjoseph07 commented 7 months ago

@ScholliYT

Hey man, I totally agree that a better error message could be returned and I got this updated in a forked community run repo called Svelty-email. if you would like to check it out.