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

Typescript import issue #129

Open
Cyberphinx opened this issue Nov 14, 2021 · 1 comment
Open

Typescript import issue #129

Cyberphinx opened this issue Nov 14, 2021 · 1 comment

Comments

@Cyberphinx
Copy link

Cyberphinx commented Nov 14, 2021

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)
@SamSamskies
Copy link
Owner

#50

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