1

I am using angular-cli to build angular 2 app. While using google map object I see following error on build/serve,

Cannot find name 'google'

I have installed google maps typings(typings version 1.4.0),

typings i dt~google.maps --global --save

Followed the solutions below which didnt help much,

adding googlemaps to angular-cli

How to install Typescript typings for google maps

Please suggest what can I try next.

Community
  • 1
  • 1
varsh
  • 152
  • 10

1 Answers1

1

Found the issue,

typings > index.d.ts was not updated with google.maps typing reference

After changing that and adding reference to index.d.ts in typings.d.ts it recognizes google map objects.

varsh
  • 152
  • 10