Closed nat-alia closed 3 years ago
Create a new file src/vue-panzoom.d.ts
and put declare module "vue-panzoom";
inside of it. You will stop getting the error (but no type hinting will be available).
@janvorisek I am having the same issue, and its not working even declaring the d.ts.... any other idea?
@iwalucas The author needs to publish the built library files into the npm releases. This also coulld be automated in the build process. I'll send PR when I can.
Error on Visual Code saying:
Could not find a declaration file for module 'vue-panzoom'. '/Users/nataliaoledzka/Documents/Capstone/capstone-codemarch22/node_modules/vue-panzoom/dist/vue-panzoom.umd.js' implicitly has an 'any' type. Try
npm install @types/vue-panzoom
if it exists or add a new declaration (.d.ts) file containingdeclare module 'vue-panzoom';
ts(7016)Tried npm install @types/vue-panzoom and tried to add a new declaration file but either I did it incorrectly or it doesn't work.
Thank you!