I am getting this error that says jQuery is not defined.
bootstrap.js:8 Uncaught Error: Bootstrap's JavaScript requires jQuerybootstrap.js:8 (anonymous function)
Bootstrap v3.3.0
jQuery JavaScript Library v2.1.3
requirejs
require.config({
shim: {
'backbone': {
deps: ['underscore', 'jquery']
},
'backbone-validation': {
deps: ['backbone', 'jquery']
},
'jquerymx': {
deps: ['jquery']
},
'bootstrap': {
deps: ['jquery']
}
},
paths: {
'jquery': '/public/js/lib/jquery-2.1.3',
'jquerymx': '/public/js/lib/jquerymx-3.2.custom',
'bootstrap': '/public/js/lib/bootstrap',
'handlebars': '/public/js/lib/handlebars-v2.0.0',
'underscore': '/public/js/lib/underscore',
'backbone': '/public/js/lib/backbone',
'backbone-validation': '/public/js/lib/backbone-validation'
}
});
require(
[
'order!jquery',
'order!jquerymx',
'order!bootstrap',
'order!handlebars',
'order!underscore',
'order!backbone',
'order!backbone-validation'
], function () {
require(['main'], function (main) {
main.initialize();
});
});
is there something wrong here?
Thanks.