TypeError: $this.one(...).trigger is not a function
at Cropper.prototype.load (ngCropper.all.js:formatted:258)
at new Cropper (ngCropper.all.js:formatted:230)
at HTMLImageElement.<anonymous> (ngCropper.all.js:formatted:2201)
at Function.jQuery.extend.each (jquery.js:360)
at jQuery.fn.jQuery.each (jquery.js:137)
at $.fn.cropper (ngCropper.all.js:formatted:2195)
at ngCropper.all.js:formatted:2249
at processQueue (angular.js:14745)
at angular.js:14761
at Scope.$eval (angular.js:15989)
You should replace the options.build by options.build || function() {}.
When not declaring 'build' option, cropper is unable to attach the build event and therefore returns a window object, that cannot be triggered:
The line that fails is this one:
it throws the error:
You should replace the
options.build
byoptions.build || function() {}
.