I have errors loading jquery-menu-aim
and bootstrap
with Require.js in backbone project.
Here are what I had defined in main.js of :
requirejs.config({
enforceDefine: true,
paths: {
//declare path jquery, backbone, underscore,and other library here....
"jquery-menu-aim" : "libs/jquery/jquery.menu-aim",
"bootstrap" : "libs/jquery/bootstrap.min"
},
shim: {
"jquery-menu-aim" : {
deps: ["jquery"] ,
exports: "Jquerymenuaim"
},
"bootstrap" : {
deps: ["jquery"] ,
exports: "Bootstrap"
}
}
});
Errors : Uncaught Error: No define call for jquery-menu-aim http://requirejs.org/docs/errors.html#nodefine require.js:8 Uncaught Error: No define call for bootstrap http://requirejs.org/docs/errors.html#nodefine
When I defined it in my view. I think maybe I was wrong in defining library in Shim config, but I can not found it in google.
Any help would be appreciated. Thanks.