i’m using flickity as the instructions, but got this error warning in the console
anybody know how to solve this?
Here is the current bundle package
<script src="https://unpkg.com/flickity-as-nav-for@3/as-nav-for.js"></script>
<script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css">
i’m using flickity AsNavFor but it shown an error in the console, how do i get rid or solve of it?
2
Answers
Change the order of your
script
tags:I had the same issue. This is what fixed it for me.
Swap out:
<script src="https://unpkg.com/flickity-as-nav-for@3/as-nav-for.js"></script>
with:
<script src="https://unpkg.com/flickity-as-nav-for@2/as-nav-for.js"></script>