Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ilaoniu opened this issue Sep 10, 2022 · 3 comments · Fixed by #6660

Comments

@ilaoniu
Copy link

ilaoniu commented Sep 10, 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.

@DaniilIsupov
Copy link

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

@DaniilIsupov
Copy link

I think it's related commit 00036bb

@yyx990803
Copy link
Member

fixed via 8963c55

@github-actions github-actions bot locked and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants