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

后端 未结 10 829
梦谈多话
梦谈多话 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:39

    It is not on the root. You just need to add the code below on this file: node_modules/@types/googlemaps/index.d.ts

    declare module 'googlemaps';
    

提交回复
热议问题