SortableJS / Vue.Draggable

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

Document is not defined #1164

Closed ChahinDB7 closed 2 years ago

ChahinDB7 commented 2 years ago

Since yesterday I started to use this amazing package. It worked in the beginning but after a while I got a weird error.

image image

This error only happens only when I am importing the package with import draggable from 'vuedraggable'. When I run my project it will automatically crash because of the error. It strange to me that I am the only one getting the error. How can I fix this?

I am using vue: 2.6.14 with Nuxt. Package: vuedraggable@2.24.3

ChahinDB7 commented 2 years ago

I close this issue because I fixed it with: import Vue from 'vue' import draggable from "vuedraggable"; Vue.component('Draggable', draggable)