Vue.Draggable icon indicating copy to clipboard operation
Vue.Draggable copied to clipboard

[Vue warn]: Method "clone" has already been defined as a prop.

Open micael17 opened this issue 5 years ago • 2 comments

First check https://github.com/SortableJS/Vue.Draggable/blob/master/CONTRIBUTING.md

Jsfiddle link

Step by step scenario

using Nuxt (Vue 2). I just put this code in my .vue file, <draggable></draggable>

there is an error : [Vue warn]: Method "clone" has already been defined as a prop.

I already installed vuedraggable 2.24.1

In my plugins/vuedraggable.js

 import Vue from 'vue'
import draggable from 'vuedraggable'

Vue.component('draggable', draggable)

And my nuxt.config.js {src: '~/plugins/vuedraggable'}

Any help? :)

Actual Solution

Expected Solution

micael17 avatar Sep 21 '20 04:09 micael17

Not an expert in Nuxt but seems it tries to add clone property to vue.draggable and it has alreay one. Nothing I can do here, better check with them that's going on.

David-Desmaisons avatar Oct 31 '20 13:10 David-Desmaisons

I had the same problem

wohenxion avatar Jan 21 '22 10:01 wohenxion