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
You can avoid this error next way:
After you have installed
npm install @types/googlemaps --save-dev
Go to src/tsconfig.app.json and add next line:
"compilerOptions": { ..., "types": [ "googlemaps" ], ..., },