phphe / vue-draggable-nested-tree

Vue2 draggable tree component
https://hetree.phphe.com/
MIT License
344 stars 62 forks source link

"TypeError: Cannot read property '_vm' of undefined" #91

Open pieterjanmaes opened 5 years ago

pieterjanmaes commented 5 years ago

Hi, the drag and drop functionality works. But I'm having always the same warning when I start to drag:

[Vue warn]: Error in v-on handler: "TypeError: Cannot read property '_vm' of undefined"

found in

---> at DraggableTree.vue

vue.esm.js?efeb:1897 TypeError: Cannot read property '_vm' of undefined at eval (Playlist.vue?3f83:192) at func (tree-helper.esm.js?12b1:82) at Object.depthFirstSearch (tree-helper.esm.js?12b1:97) at VueComponent.onDrag (Playlist.vue?3f83:188) at invokeWithErrorHandling (vue.esm.js?efeb:1863) at VueComponent.invoker (vue.esm.js?efeb:2188) at invokeWithErrorHandling (vue.esm.js?efeb:1863) at VueComponent.Vue.$emit (vue.esm.js?efeb:3891) at Object.drag (vue-draggable-nested-tree.es.js?4566:1346) at drag (draggable-helper.es.js?ed3a:90)

Kind regards, Pieterjan

phphe commented 5 years ago

Ignore it if it does not affect the result. I am reconstructing this repo so I will not solve the issue.

kyung-yeon commented 5 years ago

It seems to be the same problem.. #90

pieterjanmaes commented 5 years ago

I updated, but still have the same warning ...

bum-hyun commented 4 years ago

I updated, but still have the same warning ...

I think you are using typescript. If so, give a type to node and childNode.