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

Couldn't find module declaration types #401

Closed
guilledll opened this issue Jun 7, 2023 · 1 comment
Closed

Couldn't find module declaration types #401

guilledll opened this issue Jun 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@guilledll
Copy link

guilledll commented Jun 7, 2023

Importing error ❌

Hello, I just installed the package on my new vite + vue 3 project at vsCode, i'm using "typescript": "^5.1.3", the following error appeared:

Could not find a declaration file for module 'mande'. '/home/guille/code/vue/node_modules/mande/dist/mande.mjs' implicitly has an 'any' type.
  There are types at '/home/guille/code/vue/node_modules/mande/dist/mande.d.ts', but this result could not be resolved when respecting package.json "exports". The 'mande' library may need to update its package.json or typings.

image

Reproduccion repo 📂

https://github.com/Guilledll/mande-type-issue

Is this something I can fix updating some package or changing my tsconfig.json or is an error from the mande package?

Thanks in advance! 🙌

@DevMoritz
Copy link

I have the same problem. But I cant find a solution.

@posva posva closed this as completed in 7678c66 Jul 25, 2023
@posva posva added the bug Something isn't working label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants