Hi Liam,
thank you very much for the quick response.
I have stored the component “TheCard” from and deposited it in this repo for you.
Thanks a lot
Peter
The error message really should be improved here, but the problem is that you never assign rectangleRef to an element, so you are passing in undefined for the el value in the createGesture call.
I recommend looking at this ref documentation for some examples in Vue 3: Template Refs | Vue.js
The problem is not with Ionic Framework, it is that you are not passing in a valid element, so we are unable to call addEventListener on it.
You need to assign this ref to an element and then call createGesture once your component has been mounted. It might be easier to use the setup Composition API function with an onMounted hook: