I'm having an issue applying a bootstrap template to my Spark app. CSS wise all good but when I add the template's css and Parsley JS as well, I'm getting the following messages in the console.
Uncaught TypeError: $ is not a function
at new Sidemenu (jquery.app.js:12)
at jquery.app.js:77
at jquery.app.js:79
Sidemenu @ jquery.app.js:12
(anonymous) @ jquery.app.js:77
(anonymous) @ jquery.app.js:79
parsley.min.js:8 Uncaught ReferenceError: jQuery is not defined
at parsley.min.js:8
at parsley.min.js:8
jquery.app.js is the template js file and normally expects jquery loaded before it which I assume it is from the app.js (Spark).
I've tried loading jquery.min.js and a noconflict, but bashing head on wall.
Any guidance appreciated. This seems to be the last hurdle in getting the template going.
Also I noticed that my Vue controllers were each getting a separate copy of jQuery, which caused errors when trying to use JQuery plugins. To fix this I had to require() the plugins at the top of the Vue file. So you could also try requiring jQuery require("jQuery"); at the top of jquery.app.js