Angular-google-maps: ERROR in node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts

Created on 6 Oct 2020  路  4Comments  路  Source: SebastianM/angular-google-maps

I encountered error in my terminal when I execute ng build or ng serve:

ERROR in node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:41 - error TS2314: Generic type 'MapHandlerMap<T>' requires 1 type argument(s).

51     subscribeToMapEvent<N extends keyof google.maps.MapHandlerMap>(eventName: N): Observable<google.maps.MapHandlerMap[N]>;
                                           ~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:94 - error TS2314: Generic type 'MapHandlerMap<T>' requires 1 type argument(s).

51     subscribeToMapEvent<N extends keyof google.maps.MapHandlerMap>(eventName: N): Observable<google.maps.MapHandlerMap[N]>;

Duplicate of:
https://github.com/SebastianM/angular-google-maps/issues/1892

All 4 comments

Same

I have the same issue :
i have angular : 10.1.4
I installed agm/core latest version : 3.0.0-beta.0

if i build there i have lots of problem that are fixed by installing peer @types/googlemaps

but then i arrive at the same issue on ng build and ng serve that blocks the whole app

I still have this issue is there any solution to continue now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChrisDevinePimss picture ChrisDevinePimss  路  3Comments

ostapch picture ostapch  路  4Comments

Subhojit1992 picture Subhojit1992  路  3Comments

nthonymiller picture nthonymiller  路  4Comments

DeveloperAdd007 picture DeveloperAdd007  路  3Comments