Skip to content

Trouble importing dependencies (jquery / other) #53

Answered by hayes0724
doitalldev asked this question in Q&A
Discussion options

You must be logged in to vote

I use both often with packer, import jquery and slick in the same file:

import $ from "jquery";
import slick from 'slick-carousel';

$(document).ready(() => {
 $('#slider').slick({
      slidesToShow: 1,
      slidesToScroll: 1,
      arrows: false,
      fade: true,
      asNavFor: '#quoteNav',
      infinite: true,
      centerMode: true
    });
})

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@doitalldev
Comment options

@doitalldev
Comment options

@hayes0724
Comment options

@doitalldev
Comment options

Answer selected by doitalldev
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants