vuejs / devtools-v6

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools-v6.vuejs.org/
MIT License
24.66k stars 4.15k forks source link

Vue warns when passing vue component into props #903

Open lackneets opened 5 years ago

lackneets commented 5 years ago

Version

5.0.0-beta.4

Browser and OS info

Chrome 73.0.3683.75 / Windows 10

Steps to reproduce

Firstly, create a two-layer Vue app with {app: Object} as props in the component.

Secondly, pass app itself as a prop such as :app="this"

<App>
|   <Component :app="this"/>
...

What is expected?

Those error messages should not be displayed, unless vue is not designed to pass any components as props

What is actually happening?

Finally, Select on the component in dev-tools, as a result, it will reports many errors for example:

[Vue warn]: Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
[Vue warn]: Property or method "_vm" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
[Vue warn]: Property or method "$firebaseRefs" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.


Of course I know it's not a good idea to have a such high dependency between two components, actually, I am on a transition period of restructure vue components. I had searched for any discussion about passing component(instance) into props, unfortunately, I got no information of that

lackneets commented 5 years ago

This problem is still existing

LinusBorg commented 5 years ago

A real reproduction is required.

pxwee5 commented 4 years ago

Just want to highlight that this is still an existing issue.

ibyteyou commented 4 years ago

you can reproduce if set vue-component to Map in Vuex =) Снимок экрана 2020-06-08 в 19 38 46

DavidPinilla1 commented 3 years ago

I recently had this issue, any updates so far?

LinusBorg commented 3 years ago

https://github.com/vuejs/vue-devtools/issues/903#issuecomment-475907127