CyberNika / v-contextmenu

🖱 ContextMenu based on Vue 3 & Vue 2
https://cybernika.github.io/v-contextmenu/
MIT License
918 stars 112 forks source link

no typescript support #115

Closed ralpheichelberger closed 10 months ago

ralpheichelberger commented 2 years ago

src/main.ts(12,25): error TS7016: Could not find a declaration file for module 'v-contextmenu'. '/app/node_modules/v-contextmenu/dist/index.common.js' implicitly has an 'any' type. Try npm i --save-dev @types/v-contextmenu if it exists or add a new declaration (.d.ts) file containing declare module 'v-contextmenu';

期望结果

实际结果

复现步骤

环境说明

crystalfp commented 2 years ago

Yes, you have to add the file v-contextmenu.d.ts containing only the line declare module "v-contextmenu"; in the same directory of App.vue. Hope it helps mario

kittors commented 10 months ago

When I test according to the method you mentioned.prompt:No instance corresponding to contextmenu was found.