Skip to content

Typescript import issue #129

Description

@ling0x

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions