angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

'agm-map' is not a known element:

Open haseebee7 opened this issue 4 years ago • 4 comments

'agm-map' is not a known element:

  1. If 'agm-map' is an Angular component, then verify that it is part of this module.
  2. If 'agm-map' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. I am trying to show Google Maps in a modal with a marker. Stuck in this problem. What should I do?

haseebee7 avatar Oct 29 '21 12:10 haseebee7

I am using Angular 12

haseebee7 avatar Oct 29 '21 12:10 haseebee7

Do you have AgmCoreModule.forRoot(...) imported in your module?

misomarcell avatar Oct 31 '21 22:10 misomarcell

if you are using a child module then import AGM into both(parent(with API key), child) module

hamz4arif avatar Nov 15 '21 05:11 hamz4arif

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 06:04 stale[bot]