-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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). #1892
Comments
Same error, Angular V9, fresh install |
Hello, What is your AGM version ? |
Just downloaded, @agm/core@3.0.0-beta.0 from package.json
Da: Pierre Steinier<mailto:notifications@github.com>
Hello,
What is your AGM version ?
|
Yep, i've got the same error since i updated @types/googlemaps... |
You can rollback to v3.39.13 of @type/googlemaps (npm i @types/googlemaps@3.39.13) |
Yes, installing @types/googlemaps@3.39.13 solved the issue. |
it worked thanks |
For me it was also |
Yep, same issue here - seems like rollback of
|
install npm install @types/googlemaps@3.39.12 --save-dev |
Is it any plan to update this type to the latest version of |
Except @types/googlemaps which is stuck in the past because of sebholstein/angular-google-maps#1892
Error: node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:41 - error TS2314: Generic type 'MapHandlerMap' requires 1 type argument(s). 51 subscribeToMapEvent(eventName: N): Observable<google.maps.MapHandlerMap[N]>; |
thank you so much. it is working for me.<3 |
@guri1497 for me, too, it solved the problem😊 |
I have the same issue, but a weird one, the normal build working fine for me with ng build --prod but when I build my Docker image then I have this issue! BTW:
Any similar behavior? |
@hamzahsn you need to change the "@types/googlemaps": "3.39.12", to "@types/googlemaps@3.39.13" |
@EfratIfergan I have tried them both actually but did not work |
this worked for me |
I am also getting the same error. I am trying to upgrade the @types/googlemaps version from 3.39.13 to 3.43.3. |
It really worked for me too thanks Developers : npm i @types/googlemaps@3.39.13 |
I have the same issue and was not resolved by executing the above all solutions. Dependencies I have |
Had the same issue like you guys. Here is what I did and I am able to move forward now cleared npm cache
|
I got these errors after downgrade @types/googlemaps from @3.40.x to @3.39.13 Error: node_modules/@types/googlemaps/index.d.ts:47:22 - error TS6053: File 'E:/GitHub/AngularWorkspace/MADFU-2/adminpanel-new/node_modules/@types/googlemaps/style-reference.d.ts' not found. 47 /// Error: node_modules/@types/googlemaps/reference/map.d.ts:598:23 - error TS2304: Cannot find name 'MapTypeStyleElementType'. 598 elementType?: MapTypeStyleElementType; Error: node_modules/@types/googlemaps/reference/map.d.ts:599:23 - error TS2304: Cannot find name 'MapTypeStyleFeatureType'. 599 featureType?: MapTypeStyleFeatureType; Error: node_modules/@types/googlemaps/reference/map.d.ts:600:19 - error TS2552: Cannot find name 'MapTypeStyler'. Did you mean 'MapTypeStyle'? 600 stylers?: MapTypeStyler[]; × Failed to compile. |
MhmdWishah Did you try to remove cache? if not then try that:
|
Somehow the project came back to work well without issues in the terminal. I'm gonna try use the components now and let you know if I face any issues. |
Nothing appears in the page and I face this issue now in the console agm.component.html:19 ERROR TypeError: Cannot read properties of undefined (reading 'then') |
I think this issue isn't related to what in this thread anymore. It's just a normal angular error 😄 You just need to handle the undefined value in line 19 in agm.component.html as error said. |
No, It's not a noraml angular error! pages-routing.module.ts:54 ERROR TypeError: Cannot read properties of undefined (reading 'then') |
Then I couldn't go further without a reproducer for error or the code itself. |
I encountered error in my terminal when I execute ng build or ng serve:
The text was updated successfully, but these errors were encountered: