vue2-leaflet-markercluster icon indicating copy to clipboard operation
vue2-leaflet-markercluster copied to clipboard

Could not find a declaration file for module 'vue2-leaflet-markercluster'

Open yog3sha opened this issue 4 years ago • 2 comments

How to add types or declaration of this module when project is created in Vue TS? Map is getting created but getting following error in terminal: Try npm install @types/vue2-leaflet-markerclusterif it exists or add a new declaration (.d.ts) file containingdeclare module 'vue2-leaflet-markercluster';``

yog3sha avatar Oct 23 '20 11:10 yog3sha

I created a file named 'vue2-leaflet-markercluster.d.ts' at the level of tsconfig.js and added line declare module 'vue2-leaflet-markercluster'; to it. Error got resolved. Is there any better or more proper way to do this for this package?

yog3sha avatar Oct 23 '20 11:10 yog3sha

I have done the same for my project, I don't believe there is any better way as there is no declaration file contained in this library.

MinerMax555 avatar Oct 30 '20 13:10 MinerMax555