@types/googlemaps/index.d.ts' is not a module

后端 未结 10 836
梦谈多话
梦谈多话 2020-12-04 14:25

I want to use the Google Maps API with my Angular project, so I used these two commands to install npm packages:

npm install @agm/core --save-dev
npm install         


        
10条回答
  •  庸人自扰
    2020-12-04 14:31

    It works fine

    npm install --save-dev @types/googlemaps
    At the beggining of your component file, type:
    /// 
    

提交回复
热议问题