SortableJS / Vue.Draggable

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

Is this module compatible with nuxt 3? #1171

Open gramadaioan98 opened 2 years ago

gramadaioan98 commented 2 years ago

I tried to add this module but I don't think it is compatible with nuxt3 because I got this error:

TypeError: Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.

Is there a way to add this module on nuxt3?

waruyama commented 2 years ago

No, Nuxt 3 uses Vue 3. This package uses Vue 2, so you should try the newer one vue.draggable.next

I cannot guarantee that vue.draggable.next will work for you, but chances are definitely higher.

gramadaioan98 commented 2 years ago

@waruyama Yes, this package works. vue-draggable-next