Skip to content

Cropper won't Compile AoT #293

@hhmultimediallc

Description

@hhmultimediallc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions