I am attempting to implement an EXTREMELY basic test that uses jquery, underscore.js and backbone.js loaded via require.js and for some reason I just cannot seem to get everythi
I had the same problem. Actually I found that you do not need an AMD compliant Backbone or Underscore, or require-jquery or anything else (e.g. !order). All you need to do to is have app defined in paths and than set its dependencies in shim :). Somehow it used to work without it in the past.
paths: {
app:'app',
jquery: '../libs/jquery/jquery.1.9.1.min',
underscore: '../libs/underscore/underscore.min',
backbone: '../libs/backbone/backbone.min',
// ...
},
shim: {
"app": {
deps: ['jquery','underscore','backbone'],
exports: 'app'
},
"backbone": {
deps: ['jquery','underscore'],
exports: 'Backbone'
},
"underscore": {
exports: '_'
}
//...
}