Closed waysagency closed 2 years ago
@waysagency, hello. I assume it's not the library specific issue.
When you use the <script setup>
syntax top-level bindings are exposed to template.
Therefore when you write:
const cropper = ref(null)
You expose to your template cropper
variable. Then you use it as the component and it produces the error, because it's not component at all.
Rename it to cropperRef
to testify my assumption.
Hi @Norserium,
Thanks for the quick solution. This indeed was the problem and your assumption works great.
Thanks!
@waysagency, you are welcome!
Hi there,
I'm getting the following error.
This happens when I try to access the cropper component through a ref.
Could someone help me out? Is this a bug or something?
If you need anything else, please let me know