cameronhimself / vue-drag-drop

A lightweight Vue wrapper that abstracts away the wonkier parts of the Drag and Drop Browser API
496 stars 83 forks source link

Build fails when using this plugin in a Rollup project #52

Closed izziaraffaele closed 6 years ago

izziaraffaele commented 6 years ago

Importing this plugin in a Rollup project results in an error saying:

'vue-drag-drop' is imported by XXX, but could not be resolved – treating it as an external dependency
No name was provided for external module 'vue-drag-drop' in options.globals – guessing 'VueDragDrop'
cameronhimself commented 6 years ago

This should be resolved with version 1.1.2. However, until I fix my build process to have better support for Rollup, you'll need to use the default import in your project rather than importing Drag and Drop separately. Like this:

import Vue from 'vue';
import VueDragDrop from 'vue-drag-drop';

Vue.use(VueDragDrop);