-
Hi, How can i add my own scripts? For instance, i'm trying to add 'flickity'(https://flickity.metafizzy.co/). I've tried to run 'yarn add flickity' which add flickity to the node_modules directory in my theme folder.
But this gives a whole lot of errors when running 'yarn watch'. Another this i tried is downloading flickity.pkgd.js and placing it in the /resources/js folder. After this, i've added $('selector').flickity(). to my app.js file. Both ways, i get a console error : Uncaught ReferenceError: Flickity is not defined I know this is some basic setup problem, but can you help me out any way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can import flickity within your import flickity from 'flickity'; |
Beta Was this translation helpful? Give feedback.
You can import flickity within your
resources/js/app.js
file. It is not meant to be included within your tailwind config file.