KABBOUCHI / vue-tippy

VueJS Tooltip powered by Tippy.js
https://vue-tippy.netlify.app
MIT License
742 stars 92 forks source link

Giving error with when using with TypeScript : Could not find a declaration file for module 'vue-tippy' #175

Closed ayoubkhan558-zz closed 3 years ago

ayoubkhan558-zz commented 3 years ago

Could not find a declaration file for module 'vue-tippy'. 'E:/Ayoub Khan/Porfolios/ayoubkhan-portfolio/node_modules/vue-tippy/dist/vue-tippy.umd.js' implicitly has an 'any' type. Try npm i --save-dev @types/vue-tippy if it exists or add a new declaration (.d.ts) file containing declare module 'vue-tippy';

KABBOUCHI commented 3 years ago

which version are you using?

current vue-tippy@v4 doesn't have types only the vue-tippy@next has types.

ayoubkhan558-zz commented 3 years ago

vue-tippy@next

I used npm install --save vue-tippy to install this

KABBOUCHI commented 3 years ago

vue-tippy doesn't have types, ignore the error by adding // @ts-ignore

ayoubkhan558-zz commented 3 years ago

If i install npm install --save vue-tippy@next then will it work with vuejs 3 and typescript?

KABBOUCHI commented 3 years ago

npm install --save vue-tippy@next this is for vue3 only its written with typescript it should work fine

KABBOUCHI commented 3 years ago

you can check the docs here https://vue-tippy.netlify.app/ its still in alpha stage

ayoubkhan558-zz commented 3 years ago

@KABBOUCHI one more question, what is difference between vue-tippy@v6 and tippy@next ?

KABBOUCHI commented 3 years ago

they are the same:

vue-tippy@latest => vue-tippy@v4 vue-tippy@next => vue-tippy@v6

ayoubkhan558-zz commented 3 years ago

Thank you so much its working :)