cstefanache / angular2-img-cropper

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

compile error with angular4.0 #157

Closed zxmsdyz closed 7 years ago

zxmsdyz commented 7 years ago

after update pro to angular4.0, when i run ng serve the console show error message like bottom: ERROR in ImageCropperModule is not an NgModule webpack: Failed to compile.

the component can't work in angular4 env?

adamunchained commented 7 years ago

We had same issue. I fixed it by using version "0.8.1"

I suspect this issue was caused by #148

cstefanache commented 7 years ago

Can you please try with 0.8.4 ? - unfortunately had to introduce .d.ts && .ts files again

adamunchained commented 7 years ago

@cstefanache - it works both AOT and 4.0.0! Thanks mate!