Open shoma-mano opened 1 year ago
I'm having the same issue, no vueParentComponent with SSR. Works when I navigate to a different route, and come back. I wonder if not having vueParentComponent means hydration issue without showing a warning/error message?
It's an issue in Vue Core. That property is only set when an element is being mounted - which doesn't happen during hydration.
Basically, this:
also has to be done somewhere here in hydrateElement()
:
Very frustrating, this happens for me too, using latest dev tools and nuxt.
Vue devtools version
6.4.5
Link to minimal reproduction
https://sfc.vuejs.org/#__SSR__eNp9UEkOwjAM/EqUCxea3KsICfGNXFgMFDWL7LQcqv4dJ0WlLOKWGc+MnRnkNkbVdyBraeiITUyCIHVxY33jYsAkdtemPYkzBidWSheUDSvrjZ4crGWQwMV2n4CRMEW2MZOcGaPnsVzLKbly+6huFDzvHtgk7HNAVtaiMJnjXRlbeU0pUq01nY/5gBupgBfNL4WdT40DBeSqA4Y7AXKwletFhmayB6wQ/AkQ8F/mh/QrN8eO1o/8lbmPHwUu+nlrR5g8zZcVd2H0ZHi1ND4AuJ6OCw==
Steps to reproduce & screenshots
p element has a __vueParentComponent in property when SSR is OFF, but it doesn't when SSR is ON.
What is expected?
can select component by clicking UI also when SSR is ON.
What is actually happening?
When I use Nuxt3, I can't use this feature in pages rendered in server side. I tried SSR off in nuxt.config.ts, then I can select a component by clicking.
System Info
Any additional comments?
I'm not sure, but I think Devtools can't traverse component tree because element does not have __vueParentComponent property in SSR.
app-backend-vue3/lib/components/el.js