How to connect owl-carousel (browserify)?

var $ = require('jquery');
var owl = require('owl.carousel');
module.exports = function(selector){
return $(selector).owlCarousel();
};

owl('.owl-carousel');

In the console I see an error like this : bundle.js:11899 Uncaught TypeError: Cannot read property 'fn' of undefined
August 23rd 19 at 10:42
0 answer

Find more questions by tags JavaScript