Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find declaration file #195

Open
bmccorm2 opened this issue Jan 12, 2023 · 4 comments
Open

Cannot find declaration file #195

bmccorm2 opened this issue Jan 12, 2023 · 4 comments

Comments

@bmccorm2
Copy link

Hi all - whenever i declare this component i get this typescript error. Anyway know how to make it go away? I've created a types.d.ts file and put the recommended text in there to no avail.

import AutoComplete from "simple-svelte-autocomplete";

Could not find a declaration file for module 'simple-svelte-autocomplete'. 'C:/VSO/esgTemplate/node_modules/.pnpm/simple-svelte-autocomplete@2.4.0/node_modules/simple-svelte-autocomplete/dist/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/simple-svelte-autocomplete if it exists or add a new declaration (.d.ts) file containing declare module 'simple-svelte-autocomplete';ts(7016)

@pimpelsang
Copy link

same problem, fix it pls :)

@ericwooley
Copy link

@pimpelsang

same problem, fix it pls :)

@pstanoev doesn't work for you, or owe you anything. If it's important to you, open a pull request, or contribute to definitely typed.

In the mean time, you all can use // @ts-ignore above the line that errors.

@risalfajar
Copy link

That happens because the lib hasn't supported TypeScript yet.

Hope anyone can add it soon since TS is very common nowadays.

@risalfajar
Copy link

@pstanoev Do you have any plan for this?

I've tried to use Sveld to generate the types, but I can't get it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants