RickStrahl / vue-mover

A 2 list mover component implemented as a VueJs Component
19 stars 9 forks source link

Is it able to use vue-cli project? #6

Open pilathraj opened 5 years ago

pilathraj commented 5 years ago

How to use vue-mover inside the vue-cli

averied commented 5 years ago

Yes.. this would be nice.

Installed sortable.js and also draggable with npm, and then tried this in main.js, but does not work:


//import sortable from 'vuedraggable'
//Vue.use(sortable)

import Sortable from 'sortablejs'
Vue.use(Sortable)

import draggable from 'vuedraggable'
Vue.use(draggable)

import mover from 'vue-mover'
Vue.use(mover)

always get "Uncaught ReferenceError: Sortable is not defined at eval (vue-mover.js?eda9:59)" in console