Make sure jQuery is loaded before using package?


#1

Im trying to implement a package that uses jQuery. Upon running meteor i get a Uncaught ReferenceError: jQuery is not defined error. If I click a button which calls a function in this new package, i get the error Uncaught TypeError: $(...).turnBox is not a function. How can I make sure jQuery is loaded before using the package?


#2

Have you tried having the package depend on the jQuery package?


#3

api.use('jquery'); did the trick, thanks :sunglasses:.