SortableJS / Vue.Draggable

Vue drag-and-drop component based on Sortable.js
https://sortablejs.github.io/Vue.Draggable/
MIT License
20.15k stars 2.9k forks source link

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

Open micael17 opened 4 years ago

micael17 commented 4 years ago

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

David-Desmaisons commented 4 years ago

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.

wohenxion commented 2 years ago

I had the same problem