SSR Error TypeError: Cannot set properties of undefined (setting 'key') when conditional single slot generated by <template v-if="..." #foo>
Vue version
3.2.39
Link to minimal reproduction
Steps to reproduce
Just look at the browser console log.
What is expected?
No errors.
What is actually happening?
SSR Error TypeError: Cannot set properties of undefined (setting 'key')
at slots.<computed> (vue.runtime.esm-browser.js:4396:29)
at ssrRenderSlotInner (server-renderer.esm-browser.js:7894:21)
at ssrRenderSlot (server-renderer.esm-browser.js:7884:5)
at ssrRender (about:srcdoc:10:5)
at renderComponentSubTree (server-renderer.esm-browser.js:7522:17)
at renderComponentVNode (server-renderer.esm-browser.js:7456:16)
at ssrRenderComponent (server-renderer.esm-browser.js:7878:12)
at about:srcdoc:22:9
at renderComponentSubTree (server-renderer.esm-browser.js:7522:17)
at renderComponentVNode (server-renderer.esm-browser.js:7456:16)
System Info
No response
Any additional comments?
Everything is OK when vue <= v3.2.37.
I get a similar error
It started with updating vue
to 3.2.38
version
IMPORTANT: reproduced only with ssr
I think it's related commit https://github.com/vuejs/core/commit/00036bb52c4e641b2be7fa55c39ced9448163b0f