From 7540a3ff1d893e377fd8bb1e5b96de0600ea4578 Mon Sep 17 00:00:00 2001 From: tarunama Date: Tue, 10 May 2022 10:37:00 +0900 Subject: [PATCH] chore(server renderer): readable warn message (#2890) --- packages/server-renderer/src/render.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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(``) } }