Works as expected when configured properly in webpack.
To replicate behavior where nested vue component does not render, do the following:
When I bundle and compile Vue components and server-side Vue code in the same bundle.
npx webpack --config webpack.config.js
node dist/bundleWithServer.js
Output:
<!--[-->
<div> Hello from Test1! <p class="greeting">Hello from Test2!</p></div>
<!-- vs. -->
<div> Hello from Test1! <p class="greeting">Hello from Test2!</p></div>
<!--]-->
When I bundle Vue Components using webpack then use components (ultimately for SSR), the nested vue component does not render.
npx webpack --config webpack-vue.config.js
node index.mjs
Output:
<!--[-->
<div> Hello from Test1! <p class="greeting">Hello from Test2!</p></div>
<!-- vs. -->
<div> Hello from Test1! <p class="greeting">Hello from Test2!</p></div>
<!--]-->
Opened issue: vuejs/core#12905