2
votes

My angular application is failing to create a prod build. I have used AGM(angular google maps). I had followed every step:

Installing "@agm/core": "^3.0.0-beta.0"

import { AgmCoreModule } from '@agm/core';

AgmCoreModule.forRoot({ apiKey: '*********************', libraries: ["places"] }),

ERROR in Directive ɵb in E:/omni-channel-web/omni-web/node_modules/@agm/core/agm-core.d.ts has no selector, please add it! Cannot determine the module for class ɵb in E:/omni-channel-web/omni-web/node_modules/@agm/core/agm-core.d.ts! Add ɵb to the NgModule to fix it.

Can someone please help me, I am breaking my head for 2 days

2
Did you 'npm install @agm/core'?Rodolfo Spier
Angular 8?, I hve the same problemAreu
npm install @agm/core@1 With this worked for me ng build -- --prod Hope if its usefullAreu
Version 1.0 does not have the option to enlarge the map. How to solve this?Rebeca Nonato

2 Answers

6
votes

For Angular 8 use this:

npm install @agm/core@1
0
votes

For anglar 8+

npm install @agm/core@latest