fengyuanchen / cropper

⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
MIT License
7.75k stars 1.74k forks source link

cropper.js errors in chrome...56 #859

Closed marcuseby closed 7 years ago

marcuseby commented 7 years ago

Receiving two errors on Cropper.js When I include it in my pages. (haven't even activated it, these are errors from just including it) I've used the two files from the DIST folder, cropper.js and cropper.css nothing else.

First error: Error: Uncaught TypeError: Cannot use 'in' operator to search for 'default' in undefined Line: 17 Code: $ = 'default' in $ ? $['default'] : $;

Second error: Error: Cannot read property 'extend' of undefined Line: 3078 Code: $.extend(Cropper.prototype, render$1);

Cropper version: 3.0.0b jQuery version: 1.12.4

Loading files this way: <link rel='stylesheet' id='jquery-cropper-style-css' href='/js/cropper/cropper.css' type='text/css' media='all' />

<script type='text/javascript' src='http://arya.localhost/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script> <script type='text/javascript' src='/js/cropper/cropper.js'></script>

marcuseby commented 7 years ago

Nevermind, fixed by upgrading to jQuery 3.1.1