Closed Silvercast closed 7 years ago
I have the same issue when running ng build --prod --aot
, has anyone found a workaround/fix yet?
Update: ng build
on debug also fails with the most recent version of @angular/cli
with this error ERROR in LyResizingCroppingImageModule is not an NgModule
. It must be due to newer angular versions changing how modules are defined.
Now you can update the module, you can import the module separately as it is inside alyle-ui
# install the repo with npm
npm install alyle-ui --save
ts
import {
AlyleUIModule,
LyResizingCroppingImageModule,
} from 'alyle-ui';
@NgModule({
declarations: [
AppComponent
],
imports: [
[...]
AlyleUIModule.forRoot({
primary: 'blue',
accent: 'pink',
other: 'red',
}),
LyResizingCroppingImageModule,
],
bootstrap: [AppComponent]
html
<ly-cropping #Img format="png"></ly-cropping>
ng build --aot
it works without aot though. but we want aot...