Cannot find module@google/maps

Asked

Viewed 121 times

1

I’m using the package @google/maps, installing:

npm install @google/maps

and

npm install @types/googlemaps

I made the import:

import * as gmaps from '@google/maps'

But I get the error

Cannot find module '@google/maps'

  • 1

    I believe this documentation can help you https://www.npmjs.com/package/google-maps

1 answer

0


I strongly encourage you to use some angled library made for use of the maps api, such as the angular-maps. There are many problems reported with the definitive type created so far, the poor documentation is one of them, in theory with the @type/google-maps you wouldn’t even need the import and should only use a standard access variable.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.