Subscribe on changes!

SSR Error TypeError: Cannot set properties of undefined (setting 'key') when conditional single slot generated by <template v-if="..." #foo>

avatar
Sep 10th 2022

Vue version

3.2.39

Link to minimal reproduction

https://sfc.vuejs.org/#__SSR__eNqNks9OwzAMxl8lCki7rImA21QmIXHhHXIpmwuZlj+Ks3KY+u7YaTvWMU27xZ9/de3PPsq3GFV3ALmSNW6SjVkg5ENcG29dDCmLd3BBtCk4sVCaA8YXxtd64ImkIIOL+yYDRULUW8LKi95TRjy0Iayfnl+aptZzXI/8mS6Xcvh/5Zqodhg8dXhk2owJNHIlisIa9cSxkd85R1xpje2GG92hCulL00ulg8/WgQJ01WcKPwiJChu5PKuhSewgVQn8FhKkWzUv0H91uWxvfE+jTLaxy2ejm1xvbSc2+wbxleaq2AcjJ+c4qizxo0D4ycyusi198oj7kFGRs0YOBg9ogTknfOOAwEKsaWeknZiLPUyb+PsnxbabL6Zs+/qlHEWCVvTDsYwrmZ3RB1WZssMtscLGMHg6qNGwKXePaaXl4pzJtyen7LWhZP8LDN0KEA==

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.

avatar
Sep 10th 2022

I get a similar error It started with updating vue to 3.2.38 version IMPORTANT: reproduced only with ssr

avatar
Sep 28th 2022

fixed via 8963c550