Vue-multiselect: Reserved Keyword Errors in console

Created on 7 Feb 2017  路  3Comments  路  Source: shentao/vue-multiselect

I tried to replicate some of the examples on the demo website but I keep getting errors including "key" is a reserved attribute and cannot be used as component prop.
(found in component )" in the console. Am I doing something wrong?
screen shot 2017-02-07 at 15 28 17

question

Most helpful comment

Hey!
Please make sure you鈥檙e running the correct version of Multiselect according to your Vue.js version.

Vue 1.x -> Vue-multiselect 1.x
Vue 2.x -> Vue-multiselect 2.0-beta (can be installed with npm install vue-multiselect@next)

This should fix the problem!

All 3 comments

See the culprit here. 'key', 'ref', and 'slot' are reserved prop names.

https://github.com/vuejs/vue/blob/769c4dc2032251323c8f61ad8eba2c26c615a618/src/core/instance/state.js#L38

Hey!
Please make sure you鈥檙e running the correct version of Multiselect according to your Vue.js version.

Vue 1.x -> Vue-multiselect 1.x
Vue 2.x -> Vue-multiselect 2.0-beta (can be installed with npm install vue-multiselect@next)

This should fix the problem!

@shentao Thank you. That fixed the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wujekbogdan picture wujekbogdan  路  4Comments

hskrishna29 picture hskrishna29  路  3Comments

stefanheimann picture stefanheimann  路  4Comments

wujekbogdan picture wujekbogdan  路  4Comments

focussing picture focussing  路  3Comments