You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.
Dear support,
I integrated angular-croppie with latest angular 5 build (1.7 cli), using example code but it throws
message: "this.croppieDirective is undefined"
i setup properly
@ViewChild('directive')
public croppieDirective: CroppieDirective;
and
public ngAfterViewInit() {
this.croppieDirective.croppie.bind({ url: 'assets/angular.png' });
}
on template:
<img #croppie="croppie" [croppieOptions]="croppieOptions" (update)="handleUpdate($event)" />
But not sure how to track and fix this error.
Full Error Shown As:
TypeError: WEBPACK_IMPORTED_MODULE_1_croppie is not a constructor
Stack trace:
CroppieDirective.prototype.ngAfterViewInit@webpack-internal:///./node_modules/angular-croppie-module/esm5/angular-croppie-module.js:20:24
....
TypeError: this.croppieDirective is undefined
Stack trace:
EditThumbComponent.prototype.ngAfterViewInit@webpack-internal:///./src/app/photo/modals/editthumbnail/editphoto.component.ts:34:9
...
The text was updated successfully, but these errors were encountered:
Dear support,
I integrated angular-croppie with latest angular 5 build (1.7 cli), using example code but it throws
message: "this.croppieDirective is undefined"
i setup properly
@ViewChild('directive')
public croppieDirective: CroppieDirective;
and
public ngAfterViewInit() {
this.croppieDirective.croppie.bind({ url: 'assets/angular.png' });
}
on template:
<img #croppie="croppie" [croppieOptions]="croppieOptions" (update)="handleUpdate($event)" />
But not sure how to track and fix this error.
Full Error Shown As:
TypeError: WEBPACK_IMPORTED_MODULE_1_croppie is not a constructor
Stack trace:
CroppieDirective.prototype.ngAfterViewInit@webpack-internal:///./node_modules/angular-croppie-module/esm5/angular-croppie-module.js:20:24
....
TypeError: this.croppieDirective is undefined
Stack trace:
EditThumbComponent.prototype.ngAfterViewInit@webpack-internal:///./src/app/photo/modals/editthumbnail/editphoto.component.ts:34:9
...
The text was updated successfully, but these errors were encountered: