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 'react-map-gl-geocoder'" #83

Closed
appaollo opened this issue Oct 13, 2020 · 2 comments
Closed

Comments

@appaollo
Copy link

Hello team,

I wanted to add a Geocoder feature on top of my react-map-gl app. But after following the steps on the main page (i.e npm install 'react-map-gl-geocoder' & importing 'react-map-gl-geocoder/dist/mapbox-gl-geocoder.css')nothing appeared on the screen and I came across the following:

Could not find a declaration file for module 'react-map-gl-geocoder'. '[...]/node_modules/react-map-gl-geocoder/dist/index.js' implicitly has an 'any' type.
Try npm install @types/react-map-gl-geocoder if it exists or add a new declaration (.d.ts) file containing declare module 'react-map-gl-geocoder';ts(7016)

I tried the first option suggested but it didn't work. And as regards the second option I'm unsure what to do and how to do it, can someone please help me?

Apologies if it had already been answered & thanks in advance for your help!

@SamSamskies
Copy link
Owner

Hi @Maledbao, please check out #50

@appaollo
Copy link
Author

Thank you very much, will check it out !

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