svelte-kit dev
crashes on page load if there is a syntax error in a layout component
#843
Labels
svelte-kit dev
crashes on page load if there is a syntax error in a layout component
#843
Describe the bug
npm run dev
/svelte-kit dev
crashes on page load if there was a syntax error in the layout component when you started it.Logs
To Reproduce
Edit
src/routes/$layout.svelte
to contain a syntax error that will cause an exception in the Svelte compiler. Start Kit in dev mode, and load the page in the browser.Expected behavior
This should display some sort of 500 response in the browser.
Severity
Low-ish, but annoying.
Additional context
Syntax errors introduced after starting
npm run dev
insrc/routes/$layout.svelte
don't seem to be a problem, nor do syntax errors in other routes, even if they were present when starting the dev server.The text was updated successfully, but these errors were encountered: