react-map-gl-geocoder icon indicating copy to clipboard operation
react-map-gl-geocoder copied to clipboard

Typescript import issue

Open Cyberphinx opened this issue 3 years ago • 1 comments

When importing the package into React typescript project, the module name import Geocoder from 'react-map-gl-geocoder'; gives the following error:

Could not find a declaration file for module 'react-map-gl-geocoder'. 'c:/Users/.../client-app/node_modules/react-map-gl-geocoder/dist/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @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)

Cyberphinx avatar Nov 14 '21 16:11 Cyberphinx

https://github.com/SamSamskies/react-map-gl-geocoder/issues/50

SamSamskies avatar Nov 14 '21 18:11 SamSamskies