diff --git a/packages/astro/src/runtime/server/render/component.ts b/packages/astro/src/runtime/server/render/component.ts index beb71d008..0a6f6288b 100644 --- a/packages/astro/src/runtime/server/render/component.ts +++ b/packages/astro/src/runtime/server/render/component.ts @@ -89,7 +89,7 @@ async function renderFrameworkComponent( const { renderers, clientDirectives } = result; const metadata: AstroComponentMetadata = { astroStaticSlot: true, - displayName, + displayName: typeof displayName === 'string' ? displayName : '', }; const { hydration, isPage, props } = extractDirectives(_props, clientDirectives);