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?
Have you tried having the package depend on the jQuery package?
1 Like
api.use('jquery');
did the trick, thanks .
Had to install mizzao’s jquery package
meteor add mizzao:jquery-ui
that is jquery-ui, not jquery