4 ms·
I am using SvelteKit in "production" (smallish) for multiple projects. Aside from the small ecosystem (where in reality I am only really missing a UI lib other
by samuelstros 5y ago
I am using SvelteKit in "production" (smallish) for multiple projects. Aside from the small ecosystem (where in reality I am only really missing a UI lib other than IBM Carbon), Svelte has no error boundaries yet. If an error is not caught, the whole app crashes with no way to recover, or even show the user to refresh the tab. See https://github.com/sveltejs/svelte/issues/1096 https://github.com/sveltejs/svelte/issues/1096.
Other than that, Svelte + SvelteKit is awesome. I would not choose React or Vue for small(er) projects.
- zapt02 5y agoI agree with you error boundaries are a huge omission. You can do basic error boundaries using one of these two packages: * https://github.com/crownframework/svelte-error-boundary https://github.com/crownframework/svelte-error-boundary * https://github.com/denisstasyev/svelte-error-boundary https://github.com/denisstasyev/svelte-error-boundary They only protect from component initialization errors but it's better than nothing. I think Svelte v4 will have more coherent error handling.