-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the problem
During development, some runtime errors only show a message in the console. For example, if you cause an error in a load function or during rendering of a component, SvelteKit's error page is displayed and you need to look at the dev console to figure out where the error is. New users may not realize that they need to look at the console for this.
It would be nice if the error and stack trace was shown on the page as well.
This was called out as accessibility feedback in sveltejs/svelte#8508 (comment), though I think surfacing errors better is more broadly applicable.
Describe the proposed solution
Expose runtime errors via Vite's error overlay, similar to how compilation errors are displayed.
Alternatives considered
Do nothing and expect people to keep looking at the dev console.
Importance
nice to have
Additional Information
I'm unclear whether this depends on vitejs/vite#2076 or not - parts of this may be blocked by Vite.