Skip to content

May be a dumb question but does this actually run on vue2? #16

Open
@vikingvynotking

Description

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 [vue@2.6.14:634:17](https://unpkg.com/vue@2.6.14)
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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions