ismail9k / vue3-carousel

Vue 3 carousel component
https://ismail9k.github.io/vue3-carousel/
MIT License
660 stars 164 forks source link

TypeScript Support #10

Closed jannikbuscha closed 1 year ago

jannikbuscha commented 3 years ago

Hello, I can't use the framework in a vue 3 typescript project. What can I do about it?

TS7016: Could not find a declaration file for module 'vue3-carousel'. 'C:/Users/Jannik/PhpstormProjects/backify-landing/node_modules/vue3-carousel/dist/carousel.js' implicitly has an 'any' type. Try npm install @types/vue3-carousel if it exists or add a new declaration (.d.ts) file containing declare module 'vue3-carousel';

nahojj commented 2 years ago

@ismail9k This doesn't work.. I get the same issue. Any fix?

Right now I solved it by "// @ts-ignore" before the import.

yesworld commented 2 years ago

I faced the same problem :(

zetashift commented 2 years ago

Running into the same problem!

ibnujakaria commented 2 years ago

any update on this issue?

LanShih commented 2 years ago

I added two options into "compilerOptions" in tsconfig.json,then it works. "allowJs": true, "noImplicitAny": false,

minhlong commented 2 years ago

I added two options into "compilerOptions" in tsconfig.json,then it works. "allowJs": true, "noImplicitAny": false,

@LanShih ,

It works, you saved me =))

Tks,

ismail9k commented 1 year ago

fixed in v0.1.42

suryachansrasoi commented 8 months ago

I am facing the same problem