Closed pratimawaghmare closed 2 years ago
@pratimawaghmare, what's the version of vue
/ vue-advanced-cropper
do you use?
I am using Vue 3 and vue-advanced-cropper 2.8.3.
@pratimawaghmare, what's exactly version of vue
do you use?
In any case, it's hard to reproduce your bug, so I need your help here. Did you try to move cropper
outside the modal window?
@Norserium sorry, I got confused with some other project's version. Actually, I am using Vue version 2.6.12 and vue-advanced-cropper version 1.11.1. And, yes I tried rendering the cropper outside the modal window, but I am getting the same error.
@pratimawaghmare, look more carefully. I'm pretty sure that you have versions mismatch. I assume that you have indeed vue@2.x.x
, but you have installed vue-advanced-cropper@2.x.x
. Check the actual version in the node_modules/vue-advanced-cropper/package.json
.
you were right, it was a version mismatch, uninstalling and reinstalling the library resolved it. Thanks for the help.
@pratimawaghmare, you are welcome!
Which version do I need to install to fix this problem?
@ProphetRen, that's easy. If you use Vue 2 you should install vue-advanced-cropper@latest
, if you use Vue 3 you should install vue-advanced-cropper@next
.
I have a Vue app where I call the cropper component in a modal, the modal is called onclick of an icon. whenever I click on the icon to open the modal it shows the below errors,
Here is a code snippet for it
I also see some warnings like this in the logs