New issue
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
Cannot read properties of undefined (reading 'showMenu') #53
Comments
Hey there - sorry I don't use Vue3 very much so I don't know the answer off the top of my head. In doing some research I've found a few pages that are perhaps worth visiting: A example method shown is: <template>
<div ref="table"/>
</template>
import { ref, onMounted } from 'vue';
setup() {
const table = ref(null);
onMounted(() => {
console.log(table.value);
});
return { table };
} You may be able to take that route. Hopefully this helps. |
If you're still running into this issue, please reopen the thread, thanks. |
I tried the above articles too. I don't use vue3 either, but need to now.
Throws vueSimpleContextMenu.value.showMenu is not a function. I can't for the life of me understand why. I am 1000% hating the composition api! |
Looks like this will help you with vue3 (defineExpose). What a pain. |
Hi, my code is a Vue3 Typescript Vite project with composition API with script setup on top, then I have not
this.$refs
I would attach a right click menu on a div named box.
Right clicking on the box container I have this error:
Cannot read properties of undefined (reading 'showMenu')
Can you suggest me please a solution ? Thanks in advance.
The Vite plugin :
The text was updated successfully, but these errors were encountered: