You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a client with a stable vue2 site, no plans to move to vue3, and now the client wishes to add some drag-n-drop functionality. I've been researching all the various vue-drag packages and this seemed like a decent one to explore. However despite all attempts it seems unusable with vue2, specifically vue 2.6.14.
Here's a summary of the various errors I'm seeing:
let VueDragula = require('vue2-dragula')
results in:
Uncaught TypeError: __webpack_require__(...) is not a function
Well, ok, maybe there's something weird about my setup. Let's try import:
import VueDragula from 'vue2-dragula'
Vue.use(VueDragula)
results in
[Vue warn]: Vue is a constructor and should be called with the `new` keyword [[email protected]:634:17](https://unpkg.com/[email protected])
Uncaught TypeError: this is undefined
so that doesn't work either.
Note: I'm not asking for help troubleshooting my setup, or workarounds to allow the plugin to work, simply questioning the current support for this package running on vue 2.6. Even the linked demo (https://jsfiddle.net/av1jLfn8/) is non-functional.
The text was updated successfully, but these errors were encountered:
I haven't tested this library since the earlier versions of Vue 2.
I would recommend cloning it and working from there, debugging the "add plugin" part with your version of Vue and comparing with how other plugins do it.
How and why I initially created this plugin, originally a fork to overcome some limitations.
I have a client with a stable vue2 site, no plans to move to vue3, and now the client wishes to add some drag-n-drop functionality. I've been researching all the various vue-drag packages and this seemed like a decent one to explore. However despite all attempts it seems unusable with vue2, specifically vue 2.6.14.
Here's a summary of the various errors I'm seeing:
Well, ok, maybe there's something weird about my setup. Let's try import:
so that doesn't work either.
Note: I'm not asking for help troubleshooting my setup, or workarounds to allow the plugin to work, simply questioning the current support for this package running on vue 2.6. Even the linked demo (https://jsfiddle.net/av1jLfn8/) is non-functional.
The text was updated successfully, but these errors were encountered: