For example, using headroom.js, in the top of my app.js I have:
import $ from 'jquery'; import Headroom from 'headroom.js'; window.$ = $; import './lib/foundation-explicit-pieces'; $(document).foundation();
var elem = document.querySelector("#scrollNav"); var headroom = new Headroom(elem); headroom.init();
but, if I try
I get a "Uncaught TypeError: (0 , _jquery2.default)(...).headroom is not a function"
I'm new to this, so apologies if this is a complete noob question...thanks for any help....