TypeScript Error: Cannot find namespace 'google'

后端 未结 7 702
青春惊慌失措
青春惊慌失措 2021-01-12 06:33

I have project angular-cli

~root~/src/typings.json

{
  \"globalDevDependencies\": {
    \"angular-protractor\": \"registry:dt/angula         


        
7条回答
  •  暖寄归人
    2021-01-12 07:27

    I had the same problem with angular 7. I did not need to import anything just run npm install @types/googlemaps again and if there is any vulnerabilities, run npm audit fix or npm audit fix --force if needed.

    After I did so, everything worked fine for me...

提交回复
热议问题