You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In SvelteKit 1.0.0-next.415, $page.error isn't typed as HttpError (which is not exported publicly).
Reproduction
If you try to output $page.error.message in +error.svelte you'll get an Unsafe member access .message on an any value. eslint(@typescript-eslint/no-unsafe-member-access) error.
This is correct, because this can be something else than HttpError, too (an Error for example, though that one has message, too). Not sure if we can do something here to appease the common case where message exists.
Describe the bug
In SvelteKit
1.0.0-next.415
,$page.error
isn't typed as HttpError (which is not exported publicly).Reproduction
If you try to output
$page.error.message
in+error.svelte
you'll get anUnsafe member access .message on an any value. eslint(@typescript-eslint/no-unsafe-member-access)
error.Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: