-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's not working with Vue3 #326
Comments
Just import the component directly
And default styles (if needed)
|
You can even create middleware to adapt plugin for vue 3 For example, create import VueDraggableResizable from 'vue-draggable-resizable/src/components/vue-draggable-resizable.vue'
import 'vue-draggable-resizable/src/components/vue-draggable-resizable.css'
export default {
install: (app, options) => {
app.component("vue-draggable-resizable", VueDraggableResizable);
},
}; Then import it and use import VueDragableResizable from './libs/vue-draggable-resizable'
const app = Vue.createApp({
/* options */
})
app.use(VueDragableResizable) |
Thank you @kidaww! To be honest I haven't been able to take a look at Vue 3 yet. Unfortunately nowadays my time is split between backend work and a little of React, therefore I'm afraid that this library will never see a pure Vue 3 implementation, unless provided by someone else (looks like that there are already a few projects out there). |
- Migrates to vue 3 - Updates all packages - Adds vitest instead of mocha and karma for testing - Adds vite instead of raw webpack - And minor changes BREAKING CHANGE: might break storybook and some of the unit tests Closes mauricius#326
- Migrates to vue 3 - Updates all packages - Adds vitest instead of mocha and karma for testing - Adds vite instead of raw webpack - And minor changes BREAKING CHANGE: might break storybook and some of the unit tests Closes #326
@vad1ym I have tried your approach, and I have this error
even with Vue 3 v3 branch installed made by @alireza0sfr it doesn't work for me In my code, direct import doesn't work
probably because there is no v3 tag, I had to install the branch directly with yarn.
And then I have this plugin
And when I try to add a rectangle, it fails
|
It happens there in the runtime.cjs.js file
and my code is the following
|
Alright, it was being to Vue instance was duplicated in VueDraggableResizable and in my Vue app. Solved by adding these lines to vue.config.js
|
It's not working with Vue3
The text was updated successfully, but these errors were encountered: