NOTE. It is not recommended to edit the library. If you still want, if you want a workaround then you can follow as shown below.
I also had the same issue using slick with a browser, but none of the solutions worked for me. Then I take in slick.js and change -
To find:
(function(factory) { 'use strict'; if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof exports !== 'undefined') { module.exports = factory(require('jquery')); } else { factory(jQuery); } }(function($) {
Replace:
;(function ( $, window, document, undefined ) {
add last line -
Search:
}));
Replace:
})( jQuery, window, document );
Hope this helps to understand the problem.
source share