Skip to content

Error beeing thrown within head with SSR results in white Page of Death #4683

@KiwiKilian

Description

@KiwiKilian

Which project does this relate to?

Start

Describe the bug

When an error is thrown within head nothing is rendered or logged (neither server or browser).

Your Example Website or App

https://codesandbox.io/p/devbox/tss-error-in-head-whit-page-cddqxj?file=%2Fsrc%2Froutes%2F__root.tsx%3A17%2C5-17%2C29

Steps to Reproduce the Bug or Issue

Open the page. Remove the throw new Error() from head to show it's working otherwise.

Expected behavior

  • Show an error in the server logs
  • Show error via the Vite Dev Overlay
  • Consider, if an error should be rendered to throug the errorComponent?

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.128.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions