angular2-img-cropper
angular2-img-cropper copied to clipboard
Cropper won't Compile AoT
ENVIRONMENT ng2-img-cropper: 0.9.0 Angular-CLI: 1.7.1 Angular: 5.1.3
Issued the following command
ng build -environment=sandbox --aot=true
ERROR in : Type ImageCropperComponent in C:/git-hcm/optimizer2/Presentation/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts is part of the declarations of 2 modules: SharedModule in C:/git-hcm/optimizer2/Presentation/src/app/_common/Shared.Module.ts and ImageCropperModule in C:/git-hcm/optimizer2/Presentation/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts! Please consider moving ImageCropperComponent in C:/git-hcm/optimizer2/Presentation/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts to a higher module that imports SharedModule in C:/git-hcm/optimizer2/Presentation/src/app/_common/Shared.Module.ts and ImageCropperModule in C:/git-hcm/optimizer2/Presentation/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts. You can also create a new NgModule that exports and includes ImageCropperComponent in C:/git-hcm/optimizer2/Presentation/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts then import that NgModule in SharedModule in C:/git-hcm/optimizer2/Presentation/src/app/_common/Shared.Module.ts and ImageCropperModule in C:/git-hcm/optimizer2/Presentation/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts.
I've got the same issue :(
This project has moved and will not maintained anymore. Please use: httpsthub.com/web-dave/ngx-img-cropper It's the new one.
Thx for the response, will try that.
Thanks!