Closed likymm closed 1 year ago
Create a file under plugins/
called vuedraggable.client.ts
with the following content...
import { VueDraggableNext } from "vue-draggable-next";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component("draggable", VueDraggableNext);
});
Then it should work properly, at least it does for me.
Nothing is required in the Nuxt 3 config then. Let me know if it works for you!
@BjornTheProgrammer really really thanks for the help dude. Works for me <3
That's the plugin that works for me with the current version.
import vuedraggable from "vuedraggable";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component("draggable", vuedraggable);
});
Sorry, I'm currently new on Vue and Nuxt and I can't make it work on my Nuxt 3 project.
Step by step scenario
Actual Solution
I tried to add it on Nuxt config using this
Expected Solution
I don't get any error and should be working fine on basic drag and drop example.
Really love your work. Thanks guys