daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!
https://daybrush.com/moveable/
MIT License
10.08k stars 618 forks source link

error in running the Vue #650

Closed mm58508536 closed 2 years ago

mm58508536 commented 2 years ago

Environments

Description

I just run demo in my project, but always throw this error: image

the same situation when i use vue-moveable but when I use probil/vue-moveable(based on the moveable 0.25.2) , It works. I find this problem occurred in the react-simple-compat image Comparison of correct and wrong objects : image

daybrush commented 2 years ago

@mm58508536 I'm sorry. It seems that the commonjs type file was built incorrectly. I have figured out the cause and will fix it soon.

daybrush commented 2 years ago

@mm58508536

moveable's new version is released. Try it again.

mm58508536 commented 2 years ago

It works! thank you for your support! but I found “import { VueMoveable } from 'vue-moveable';” instand of “import Moveable from 'vue-moveable';” some import error when I use “import Moveable from 'vue-moveable';”

daybrush commented 2 years ago

@mm58508536

I'll fix commonjs bug. Thank you :)

daybrush commented 2 years ago

@mm58508536

Test 2.0.0-beta.17 version. Thank you :)