Uncaught TypeError: this.$refs.cropper.getResult is not a function #192
-
I have a crop function for Vue Advanced Cropper like this:
I have included the import for Cropper:
Version from package.json: "vue-advanced-cropper": "^2.8.1" Cropper is also in components:
Everything works until I get to the crop function where it says the following: My first thought was, that it may have something to due with looping through multiple images, however it does not work with juse one either. I have tried combining the part from disc and upload to server from here: https://norserium.github.io/vue-advanced-cropper/guides/recipes.html#upload-image-to-a-server Any ideas why it says it's not a function please? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@AlexanderRN, what's version of Vue do you use? Did you check what's inside of |
Beta Was this translation helpful? Give feedback.
-
I think I solved it by changing the v-for to:
And the crop function to:
Thank you very much Norserium for the help and the great tool! |
Beta Was this translation helpful? Give feedback.
I think I solved it by changing the v-for to:
And the crop function to: