compiler errors - Angular 2 - Ahead-of-time compilation Issue -
when try compile project ngc, throws below error:
error encountered resolving symbol values statically. function calls not supported. consider replacing function or lambda reference exported function, resolving symbol sharedmodule in
my app.module.ts below
@ngmodule({ declarations: [appcomponent], imports: [ browsermodule, httpmodule, mdtoolbarmodule, mdsidenavmodule, routing, sharedmodule, projectmodule, consumerappmodule, usermodule, changepasswordmodule ], bootstrap: [appcomponent], providers: [httpservice, loginservice, loaderservice, { provide: locationstrategy, useclass: hashlocationstrategy }, userrole], }) export class appmodule { }` , shared.module.ts below `@ngmodule({ imports: [ commonmodule, formsmodule, mdbuttonmodule.forroot(), mdtoolbarmodule.forroot(), mdsidenavmodule.forroot(), mdinputmodule.forroot(), mdcheckboxmodule.forroot(), md2module.forroot() ], declarations: [], exports: [commonmodule, formsmodule, mdbuttonmodule, mdtoolbarmodule, mdinputmodule, mdcheckboxmodule, md2module] }) export class sharedmodule { }
i have not got proper solution please suggest me
Comments
Post a Comment