Uncaught TypeError: Object(...) is not a function When using Angular Google maps

Or Change your Agm Version to

remove your current version:

npm uninstall @agm/core

then install this version:

npm i @agm/[email protected] --save


Version 1.1.0 of AGM module was released yesterday and I believe it uses Angular 8. We had to revert back to 1.0.0 to jive with Angular 7.


// Edit your app.module.ts
import { AgmCoreModule } from '@agm/core'
@NgModule({
  declarations: [],
  // Add this also
  imports: [
    AgmCoreModule.forRoot({
      apiKey: 'your key',
      libraries: ['places'] 
    }),
  ],
  providers: [],
  bootstrap: [AppComponent]
})