OwlCarousel2 slider eklemek istiyorum fakat consol'da böyle bir hata alıyorum slider gözükmüyor bu işleri yeni öğreniyorum ve nasıl düzelticeğimi bulamadım dosyaları OwlCarousel2 sitesinde gösterildiği gibi çağırdım
owl.carousel.js:1718 Uncaught TypeError: Cannot read property 'fn' of undefined
at owl.carousel.js:1718
at owl.carousel.js:1755
Kod satırları da burası.
$.fn.owlCarousel = function(option) { var args = Array.prototype.slice.call(arguments, 1); return this.each(function() { var $this = $(this), data = $this.data('owl.carousel'); if (!data) { data = new Owl(this, typeof option == 'object' && option); $this.data('owl.carousel', data); $.each([ 'next', 'prev', 'to', 'destroy', 'refresh', 'replace', 'add', 'remove' ], function(i, event) { data.register({ type: Owl.Type.Event, name: event }); data.$element.on(event + '.owl.carousel.core', $.proxy(function(e) { if (e.namespace && e.relatedTarget !== this) { this.suppress([ event ]); data[event].apply(this, [].slice.call(arguments, 1)); this.release([ event ]); } }, data)); }); } if (typeof option == 'string' && option.charAt(0) !== '_') { data[option].apply(data, args); } }); }; /** * The constructor for the jQuery Plugin * @public */ $.fn.owlCarousel.Constructor = Owl; })(window.Zepto || window.jQuery, window, document);