I’ve been trying to add Isotope into my theme. (sage 10), however, I keep running into the error "Uncaught ReferenceError: Isotope is not defined"
- Isotope successfully included with yarn add Isotope-layout
- app.js : import ‘isotope-layout/dist/isotope.pkgd.min.js’;
Here is the example im trying to reproduce:
It works fine when i link directly to Isotope files:
I’m able to make the jQuery version work but not Vanilla one.
jQuery version here: https://codepen.io/desandro/pen/Ehgij
Any idea ?