Reputation: 1014
@angular/google-maps version: 14.1.1
I am using angular 14 and implement google map using @angular/google-maps but through error
Cannot find namespace 'google'.
Here is stackblitz link click...
Upvotes: 3
Views: 3655
Reputation: 27461
As mentioned in the doc
The Google Maps JavaScript declaration files (see source files on GitHub) can be installed using NPM from the @types/google.maps package
Try this:
npm i -D @types/google.maps
Upvotes: 2
Reputation: 380
Maybe your package doesn't installed successfully. First try this:
npm install @angular/google-maps --force
After that hard reload your app. It will works
Upvotes: 0