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

window.Vue.component is not a function

Open niesai opened this issue 5 years ago • 6 comments

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

Jsfiddle link

Step by step scenario

Actual Solution

Expected Solution

niesai avatar Aug 25 '20 07:08 niesai

Haw, I have this bug too, This bug is sporadic to me. I use this method fixed.

Find main.js write: import draggable from 'vuedraggable' Vue.use(draggable)

if you need lazy load, please check the relevant documents.

John-Soul avatar Sep 01 '20 03:09 John-Soul

Can confirm it

ghost avatar Oct 09 '20 21:10 ghost

I need the scenario, the code and the stacktrace otherwise there is nothing I can do.

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

I found a possible problem:

if (typeof window !== "undefined" && "Vue" in window) {
  window.Vue.component("draggable", draggableComponent);
}

i find an element which id is "Vue" in my boilerplate, that cause this problem.

zsxeee avatar Dec 24 '20 06:12 zsxeee

Hi, is this issue solved or abandoned?

giangnh13579 avatar Apr 05 '24 09:04 giangnh13579

Hi, is this issue solved or abandoned?

CCherry07 avatar Sep 14 '24 03:09 CCherry07

+1

dembal1990 avatar Jul 21 '25 15:07 dembal1990