Home > Mobile >  AgmCoreModule.forRoot returns a ModuleWithProviders type without a generic type argument Angular 14
AgmCoreModule.forRoot returns a ModuleWithProviders type without a generic type argument Angular 14

Time:07-20

I have upgraded to Angular 14 and I am getting the following error:

Error in turbo_modules/@agm/[email protected]/core.module.d.ts (29:79)

AgmCoreModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors. AgmCoreModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.

Here is Link : enter image description here

but since @agm/core": "^3.0.0-beta.0 is not compatible with angular 14:

warning ">@agm/[email protected]" has incorrect peer dependency "@angular/common@^9.1.0||^10.0.0".

warning " > @agm/[email protected]" has incorrect peer dependency "@angular/core@^9.1.0 ||^10.0.0".

it is better to go with a library that is compatible with angular 14:

@angular-material-extensions/google-maps-autocomplete

  • Related