diff --git a/packages/server-renderer/src/render.ts b/packages/server-renderer/src/render.ts index 3a08163f..17b5609f 100644 --- a/packages/server-renderer/src/render.ts +++ b/packages/server-renderer/src/render.ts @@ -188,11 +188,8 @@ function renderComponentSubTree( slotScopeId ) } else { - warn( - `Component ${ - comp.name ? `${comp.name} ` : `` - } is missing template or render function.` - ) + const componentName = comp.name || comp.__file || `` + warn(`Component ${componentName} is missing template or render function.`) push(``) } }