Open D1N910 opened 3 years ago
I need it, too
I have put a types.d.ts
file containing only declare module 'v-contextmenu';
in node_modules/v-contextmenu
and the same file alongside main.ts
but named v-contextmenu.d.ts
. Strange. But for me the first one is needed for vue ui serve
, and the second one to have VS Code not complaining when import contextmenu from "v-contextmenu";
. An official solution is badly needed. I use Vue 3 on windows.
you can try v3.1.0
version which includes d.ts
files and new es
outputs.
tips:
Could not find a declaration file for module 'v-contextmenu'.