You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 containingdeclare 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!
The text was updated successfully, but these errors were encountered: