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 'vue2-leaflet-markercluster' #50

Open
yog3sha opened this issue Oct 23, 2020 · 2 comments
Open

Comments

@yog3sha
Copy link

yog3sha commented Oct 23, 2020

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
Copy link
Author

yog3sha commented Oct 23, 2020

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?

@MinerMax555
Copy link

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.

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

2 participants