Vue-multiselect: Uncaught TypeError with Vue 2.1.7

Created on 25 Dec 2016  ·  18Comments  ·  Source: shentao/vue-multiselect

I'm getting this error after upgrading to Vue 2.1.7 (I was on Vue 2.1.6 before):

Uncaught TypeError: Cannot set property 'isRootInsert' of undefined
    at createElm ([email protected]:4055)
    at createChildren ([email protected]:4164)
    at createElm ([email protected]:4089)
    at VueComponent.patch [as __patch__] ([email protected]:4507)
    at VueComponent.Vue._update ([email protected]:2483)
    at VueComponent.<anonymous> ([email protected]:2457)
    at Watcher.get ([email protected]:1663)
    at new Watcher ([email protected]:1655)
    at VueComponent.Vue._mount ([email protected]:2456)
    at VueComponent.Vue$3.$mount ([email protected]:6078)

I put this JSbin together, in case it helps. And here's a (resolved) Vuejs issue which might be related since the error message is similar.

Also: Merry christmas! 😁

2.0

Most helpful comment

@silvestreh just delete node_modules and insert [email protected] and [email protected] version on package.json and npm install.

All 18 comments

I have same issue with same plugin (Vue 2.1.7). With Vue 2.1.6 he worked correctly.

Unfortunately I can't roll back to Vue 2.1.6. Webpack fails to create the bundle because of version mismatches:

- [email protected]
- [email protected]

@silvestreh just delete node_modules and insert [email protected] and [email protected] version on package.json and npm install.

@rousos87 that's exactly what I ended up doing while this issue gets resolved 😄 . Installing [email protected] alone wasn't enough because Vue itself is installing the wrong version of vue-template-compiler. So yeah, the solution is to specify the version for both, vue and vue-template-compiler.

I am getting similar errors with [email protected] and [email protected]:

vue.common.js?e881:435 TypeError: Cannot read property '_transitionClasses' of undefined(…)logError @ vue.common.js?e881:435
bluebird.js?e366:1546 Unhandled rejection TypeError: Cannot set property 'isRootInsert' of undefined
    at VueComponent.Vue$3.$mount (eval at <anonymous> (http://singlebody.local/group-admin-dev/app.js:598:2), <anonymous>:6080:15)
    at VueComponent.Vue$3.$mount (eval at <anonymous> (http://singlebody.local/group-admin-dev/app.js:598:2), <anonymous>:8454:16)
From previous event:
    at Object.<anonymous> (http://singlebody.local/group-admin-dev/app.js:814:2)
    at __webpack_require__ (http://singlebody.local/group-admin-dev/app.js:554:30)
    at fn (http://singlebody.local/group-admin-dev/app.js:85:20)
    at Object.<anonymous> (http://singlebody.local/group-admin-dev/app.js:585:19)
    at __webpack_require__ (http://singlebody.local/group-admin-dev/app.js:554:30)
    at http://singlebody.local/group-admin-dev/app.js:577:37
    at http://singlebody.local/group-admin-dev/app.js:580:10

I'm getting the same error but it involves nested components with slots.

That must be related to https://github.com/vuejs/vue/releases :)
Going to recompile the plugin in a moment :)

Published [email protected]. :)
I hope this solves the problems!

Same here... how do I tackle this down?
image

Please update to beta.13 :)

@shentao the min.js file is recompiled too? Used latest vue and beta13 package still get the same problem

@bkrztuk Which Vue version are you using?

Downgraded from 2.1.8 to 2.1.7 just now and still the same…

Weird. It should work. Are you using npm or yarn? I heard that with the latter there are sometimes problems with cleaning the cache.

Just download b13 release and use vue-multiselect.min.js which is there

@shentao found a problem, it is not mutlselect issues but rather my code where I've duplicated the same properties in other component. All works fine with b13 version.

Happy to hear that. :)

TypeError: Cannot read property '_transitionClasses' of undefined

Was this page helpful?
0 / 5 - 0 ratings