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

Could not find a declaration file for module #14

Open
KarolusD opened this issue Jun 2, 2023 · 3 comments
Open

Could not find a declaration file for module #14

KarolusD opened this issue Jun 2, 2023 · 3 comments

Comments

@KarolusD
Copy link

KarolusD commented Jun 2, 2023

PNPM does not download types, resulting in error:

1. Could not find a declaration file for module 'svelte-recaptcha-v2'. '/path/to/project/node_modules/.pnpm/svelte-recaptcha-v2@0.0.2/node_modules/svelte-recaptcha-v2/dist/index.js' implicitly has an 'any' type.

image

@h1dd3nsn1p3r
Copy link

Hi @KarolusD

I created reCaptcha.d.ts file inside my custom types DIR & I added declare module "svelte-recaptcha-v2"; inside it. This worked for me. Do you mind trying?

@basaran
Copy link
Owner

basaran commented May 4, 2024

Hi, a few things have changed since the package last published. I am going to publish a new package hopefully this week which should address the definitions issue.

@h1dd3nsn1p3r
Copy link

@basaran Also please include a fix for this warning.

image

Let me know if you need some additional hand.

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

3 participants