phphe/vue-draggable-nested-tree

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

Opened this issue · 4 comments

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

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

It seems to be the same problem.. #90

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

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

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