[ssr] Error with KeepAlive: Cannot destructure property `p` of 'undefined' or 'null'
Version
3.0.5
Reproduction link
https://github.com/rstoenescu/vue3-ssr-bug-keepalive
Steps to reproduce
- yarn
- yarn dev
- Error being reported (from
src/pages/Home.js
):
TypeError: Cannot destructure property `p` of 'undefined' or 'null'.
at setup (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:2498:27)
at callWithErrorHandling (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:156:22)
at setupStatefulComponent (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:6377:29)
at setupComponent (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:6338:11)
at renderComponentVNode (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:160:17)
at renderVNode (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:248:22)
at renderVNodeChildren (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:263:9)
at renderElementVNode (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:299:17)
at renderVNode (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:245:17)
at renderComponentSubTree (/Users/Razvan/work/test/vue3-ssr-bug-keepalive/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:217:13)
What is expected?
Not to error out
What is actually happening?
Error from vue core
Oh, umm I just filed this same bug under vue-router: https://github.com/vuejs/vue-router-next/issues/778
You sure this is a core bug and not a bug with the implementation of router-view?