We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am getting compiler errors when using the cropper along with Vue 3 setup syntax and TypeScript.
<template> <vue-cropper ref="cropper" src="demo.jpg" /> </template> <script setup lang="ts"> import { ref, onMounted } from "vue"; import VueCropper from "vue-cropperjs"; const cropper = ref<InstanceType<typeof VueCropper>>(); onMounted(() => { // This throws a compiler error (Property "reset" does not exist on type...) cropper.value?.reset(); }); </script>
For each method called this way I am getting a compiler error.
TS2339: Property 'reset' does not exist on type 'CombinedVueInstance<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => V ue<Record<string, any>, Record<string, any>, never, never, ...>>, ... 7 more ..., OptionTypesType<...>>'.
I have the following node packages installed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am getting compiler errors when using the cropper along with Vue 3 setup syntax and TypeScript.
AppComponent.vue
For each method called this way I am getting a compiler error.
I have the following node packages installed.
The text was updated successfully, but these errors were encountered: