From #10565 (comment)
When navigating to a non-existent route, sveltekit tries to render the default error page. However, if an error occurs during rendering (e.g., referencing an undefined property in the root +layout.svelte
file), sveltekit returns the static fallback error page instead.

I think in this case, it's working correctly. Since the error occurred while rendering the default error page, we get the static fallback error page. However, the error message is incorrect. It should be "Internal Error" although the route we are navigating to doesn't exist.
|
message: event.route.id != null ? 'Internal Error' : 'Not Found' |