R
R
Ruslan Absalyamov2018-10-23 11:39:14
Vue.js
Ruslan Absalyamov, 2018-10-23 11:39:14

How to get rid of Right-hand side of 'instanceof' is not an object error?

Writes an error [Vue warn]: Error in nextTick: "TypeError: Right-hand side of 'instanceof' is not an object" when I want to pass input parameters to the component
props: {
employee: 'Object'
},
That is, I checked input data through typeof and writes that this is really an object, and writes such an error in the component

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Romanov, 2018-10-23
@rusline18

I think it needs to be like this:

props: {
   employee: Object
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question