diff --git a/src/runtime/head.ts b/src/runtime/head.ts index b90445b1..e7a206a7 100644 --- a/src/runtime/head.ts +++ b/src/runtime/head.ts @@ -10,9 +10,10 @@ export function Head(props: HeadProps) { let context: ComponentChildren[]; try { context = useContext(HEAD_CONTEXT); - } catch { + } catch (err) { throw new Error( " component is not supported in the browser, or during suspense renders.", + { cause: err }, ); } context.push(props.children);