posva / mande

<700 bytes convenient and modern wrapper around fetch with smart extensible defaults
https://mande.esm.is
MIT License
1.19k stars 42 forks source link

Couldn't find module declaration types #401

Closed guilledll closed 1 year ago

guilledll commented 1 year ago

Importing error :x:

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 :open_file_folder:

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! :raised_hands:

DevMoritz commented 1 year ago

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