cstefanache / angular2-img-cropper

Angular 2 Image Cropper
MIT License
364 stars 135 forks source link

Cropper won't Compile AoT #293

Open hhmultimediallc opened 6 years ago

hhmultimediallc commented 6 years ago

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.

audiultx commented 6 years ago

I've got the same issue :(

web-dave commented 6 years ago

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

audiultx commented 6 years ago

Thx for the response, will try that.

hhmultimediallc commented 6 years ago

Thanks!