Skip to content

SSR disabled incorrectly handles root layout exceptions #13721

Open
@WarningImHack3r

Description

@WarningImHack3r

Describe the bug

Disabling SSR while throwing an error from the root +layout.js causes this very exception to not get caught properly by the error.html file, despite the docs pages or the tutorial not stating anything about this case.

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-4piamvj6?file=src%2Froutes%2F%2Blayout.ts

Logs

System Info

Stackblitz

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions