this my phtml file
require(['jquery','croppr','canvastoblob','FileSaver'],
function($,croppr,canvastoblob,FileSaver){
$(document).ready(function($) {
$("#crop").cropzee();
});
var defaultWidth = 210;
$.fn.extend({
cropzee: function (options = {
aspectRatio: null,
maxSize: null,
minSize: null,
startSize: [100, 100, '%'],
.....
......
})
})
while loading this page show an error in the console like this index:373 Uncaught TypeError: $(...).cropzee is not a function. is there any error in the function call or somewhere else? anybody, please help me to fix this error.
Thanks in advance