Can not find module '@ google / maps'

1

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

npm install @google/maps

and

npm install @types/googlemaps

I've done the import:

import * as gmaps from '@google/maps'

But I get the error

  

Can not find module '@ google / maps'

    
asked by anonymous 22.08.2017 / 16:16

1 answer

0

I strongly encourage you to use some angular library made for the use of maps, such as angular-maps . There are many problems reported with the definitive type created until then, poor documentation is one of them, in theory with @type/google-maps %% you do not need the import and should use a standard variable access only.

    
23.08.2017 / 19:12