Open jinghun1999 opened 2 years ago
I used this component in ionic3. Another colleague's computer packed apk, no problem. The apk packaged on both of my computers is running with errors。 html file:
<angular-cropper [cropperOptions]="config" (touchstart)="cropperTouchStart($event)" [imageUrl]="imageUrl" #angularCropper></angular-cropper>
and typescript file:
... @ViewChild('angularCropper') public angularCropper: AngularCropperjsComponent; ... setTimeout(() => { console.log('this.angularCropper', this.angularCropper) this.angularCropper.cropper.scale(0.1, 0.1); }, 500);
then show the error with "Cannot read property 'scale' of undefined"
my version is v0.1.5 and the cropperjs version is 1.5.2 I can't find any reason for this error as my colleague works well.
I used this component in ionic3. Another colleague's computer packed apk, no problem. The apk packaged on both of my computers is running with errors。 html file:
and typescript file:
then show the error with "Cannot read property 'scale' of undefined"