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

Error when building with --prod switch

Open beleta opened this issue 6 years ago • 1 comments

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/[email protected] [email protected]

beleta avatar Aug 04 '20 10:08 beleta

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

ghost avatar Aug 04 '20 10:08 ghost