@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...
CodePudding user response:
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
CodePudding user response:
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