angular-google-maps
angular-google-maps copied to clipboard
Error when building with --prod switch
Issue description
I get the following error when running ng --prod
ERROR in Directive ɵb in /xxxx/node_modules/@agm/core/agm-core.d.ts has no selector, please add it!
Steps to reproduce and a minimal demo of the problem
Run ng --prod on a project that uses AGM AgmGeocoder.
Current behavior
Error at build time.
Expected/desired behavior
Build with no errors.
angular-google-maps, Angular, & any other relevant dependency versions
agm 3.0.0 works with angular 9.1+, not with angular 8. You should've received a warning when you installed it in npm/yarn.
To work with angular 8, use agm 1.1.0