I have created app using create-react-app. I import owl.carousel but why it is showing this error.
how to define this $
Line 12:15: '$' is not defined no-undef
Line 21:5: '$' is not defined no-undef
Line 24:5: '$' is not defined no-undef
Here is the Component Code
var owl = $(".owl-carousel");
owl.owlCarousel({
items: 4,
loop: true,
margin: 10,
autoplay: true,
autoplayTimeout: 1000,
autoplayHoverPause: true,
});
$(".play").on("click", function () {
owl.trigger("play.owl.autoplay", [1000]);
});
$(".stop").on("click", function () {
owl.trigger("stop.owl.autoplay");
});
Cannot read property of undefined. this picture of error that I got
owlmodule they're using is, and jquery appears to be a peer dependency.