chore(server renderer): readable warn message (#2890)
This commit is contained in:
parent
0abcb2b80d
commit
7540a3ff1d
@ -188,11 +188,8 @@ function renderComponentSubTree(
|
|||||||
slotScopeId
|
slotScopeId
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
warn(
|
const componentName = comp.name || comp.__file || `<Anonymous>`
|
||||||
`Component ${
|
warn(`Component ${componentName} is missing template or render function.`)
|
||||||
comp.name ? `${comp.name} ` : ``
|
|
||||||
} is missing template or render function.`
|
|
||||||
)
|
|
||||||
push(`<!---->`)
|
push(`<!---->`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user