angular2-img-cropper icon indicating copy to clipboard operation
angular2-img-cropper copied to clipboard

Cropper won't Compile AoT

Open hhmultimediallc opened this issue 6 years ago • 4 comments

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.

hhmultimediallc avatar Mar 10 '18 12:03 hhmultimediallc

I've got the same issue :(

audiultx avatar Mar 24 '18 12:03 audiultx

This project has moved and will not maintained anymore. Please use: httpsthub.com/web-dave/ngx-img-cropper It's the new one.

web-dave avatar Mar 26 '18 23:03 web-dave

Thx for the response, will try that.

audiultx avatar Mar 29 '18 07:03 audiultx

Thanks!

hhmultimediallc avatar Mar 29 '18 13:03 hhmultimediallc