andsala / svelte-persistent-store

Persist your svelte store in localStorage or sessionStorage
MIT License
86 stars 6 forks source link

Could not find a declaration file for module svelte-persistent-store #17

Closed silvioprog closed 3 years ago

silvioprog commented 3 years ago

Hi.

Thanks for this great project!

So, when use it the project in a Sapper application, the builder emits the following warning:

Could not find a declaration file for module 'svelte-persistent-store'. '~/node_modules/svelte-persistent-store/dist/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/svelte-persistent-store` if it exists or add a new declaration (.d.ts) file containing `declare module 'svelte-persistent-store';`ts(7016)

So, it would be nice to provide an index.d.ts for the svelte-persistent-store project.

cheers

silvioprog commented 3 years ago

Fixed. It was a problem in my npm. 🤦‍♂️ Sorry for noising!

danangponorogo commented 3 years ago

Hi , can you share , how do you fixed this problem ? It seems I ran in to nearly the same situation like you are..

TS7016: Could not find a declaration file for module '@inertiajs/inertia-svelte'. 'D:\nodejs\adonis\adonisvelnertia\node_modules\@inertiajs\inertia-svelte\src\index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/inertiajs__inertia-svelte` if it exists or add a new declaration (.d.ts) file containing `declare module '@inertiajs/inertia-svelte';