Roots Discourse

Add Owl carousel issue

Hi all,
I learn sage right now, I try to add owl.carousel but in my console I got error:

Failed to load resource: the server responded with a status of 404 (Not Found) :8888/__webpack_hmr:1

  1. I’ve installed owl by yarn
  2. I’ve added import ‘owl.carousel’; to main.js
  3. In customizer.js I call the plugin
    $(document).ready(function(){
    $(’.owl-carousel’).owlCarousel();
    });
  4. In main css I’ve import style
    @import “~owl.carousel/dist/assets/owl.carousel.css”;
    @import “~owl.carousel/dist/assets/owl.theme.default.min.css”;

next yarn build, and not working

I have to change something in webpack.config.js or I something screw up ?

For now I’ve installed slick, and it works fine. Above I said I call plugin in customizer.js, on the docs I found that should be in main.js