DEV Community

Gaurav Suhanda
Gaurav Suhanda

Posted on

Namespace 'google.maps' has no exported member 'MouseEvent'

I wanted to integrate Google Maps with my Angular project. In the pilot version, I was just following this link https://angular-maps.com/guides/getting-started/. Currently, I am stuck in error:

node_modules/@agm/core/lib/directives/map.d.ts:232:43 - error TS2694: Namespace 'google.maps' has no exported member 'MouseEvent'

232 mapDblClick: EventEmitter;

I went to the file location and got this

mapClick: EventEmitter<google.maps.MouseEvent | google.maps.IconMouseEvent>;
/**
 * This event emitter gets emitted when the user right-clicks on the map (but not when they click
 * on a marker or infoWindow).
 */
mapRightClick: EventEmitter<google.maps.MouseEvent>;
/**
 * This event emitter gets emitted when the user double-clicks on the map (but not when they click
 * on a marker or infoWindow).
 */
mapDblClick: EventEmitter<google.maps.MouseEvent>;
/**
Enter fullscreen mode Exit fullscreen mode

Dependencies: npm install @agm/core npm i @types/googlemaps

Top comments (1)

Collapse
 
gauravsuhanda profile image
Gaurav Suhanda • Edited

StackOverflow:
stackoverflow.com/questions/654789...

Angular CLI: 11.0.5
Node: 12.18.3
OS: win32 x64
NPM: 6.14.6