Server renderer doesn't render child components
Version
3.0.5
Reproduction link
https://github.com/dmtkpv/vue-next-ssr
Steps to reproduce
- Clone the repo
- run
npm install
- run
npx webpack
- run
node render
What is expected?
The output is
<main>
<h1>App</h1>
<div>Comp</div>
</main>
What is actually happening?
The output is
[Vue warn]: resolveComponent can only be used in render() or setup().
webpack://app/./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js?:1691
return (comp.__props = shared.EMPTY_ARR);
^
TypeError: Cannot create property '__props' on string 'comp'
at normalizePropsOptions (webpack://app/./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js?:1691:30)
at createComponentInstance (webpack://app/./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js?:6270:23)
at renderComponentVNode (webpack://app/./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js?:159:22)
at ssrRenderComponent (webpack://app/./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js?:472:12)
at ssrRender (webpack://app/./src/app.vue?./node_modules/vue-loader/dist/templateLoader.js??ruleSet%5B1%5D.rules%5B1%5D!./node_modules/vue-loader/dist/index.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B0%5D:15:81)
at renderComponentSubTree (/***/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:211:13)
at renderComponentVNode (/***/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:177:16)
at renderToString (/***/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:400:26)
at Object.<anonymous> (/***/render.js:4:1)
at Module._compile (node:internal/modules/cjs/loader:1083:30)