Vue.draggable: Unknown element <draggable>

Created on 15 May 2017  路  10Comments  路  Source: SortableJS/Vue.Draggable

hey,
i'm trying to use the plugin in a dotnet project with vuejs 2.3 and i get this warn message

Unknown custom element:

Is there a problem with Vuejs 2.3?

Most helpful comment

I'm not missing the import statement or the component declaration. I'm only able to repro this when typeof exports == 'Object', which makes it difficult to get you a jsfiddle. I'm able to work around this problem by declaring a global component.

import draggable from 'vuedraggable';
Vue.component('draggable', draggable);

All 10 comments

Please create a jsfidle.

@aymenpeak , any feedback on this?

I have this problem as well. Haven't had a chance to debug yet though.

@jaketodaro , @aymenpeak , did you miss the:

import draggable from 'vuedraggable'
  ...
  export default {
        components: {
            draggable,
        },
  ...

@jaketodaro , @aymenpeak , any feedback?

I'm not missing the import statement or the component declaration. I'm only able to repro this when typeof exports == 'Object', which makes it difficult to get you a jsfiddle. I'm able to work around this problem by declaring a global component.

import draggable from 'vuedraggable';
Vue.component('draggable', draggable);

@David-Desmaisons no i missed to import sorable.js before the draggable script .

Thanx for your help

@jaketodaro , please check draggable-example which use vue.draggable in a webpack project.

Any feedback @jaketodaro ?

I am closing this since @aymenpeak identify his prolem. @jaketodaro re-open or create a new one if needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Stetzon picture Stetzon  路  3Comments

bborn picture bborn  路  3Comments

rootman picture rootman  路  3Comments

Laraveldeep picture Laraveldeep  路  3Comments

clemsontiger picture clemsontiger  路  3Comments