I am loading JQuery and JQuery UI. For some reason JQueryUI is undefined and I cannot seem to figure out why. I know the path is correct because if I change it to an incorrect one I get a different error, so I know it is "loading" it but I cannot figure out why it is undefined. I have loaded many other modules just fine, so I don't know what the problem is. I don't see how I would be including a circular dependency, which is the only thing I have seem to found that would cause this. Thank you for any help.
Main.js
require.config({
paths: {
'text': '../../Scripts/RequireJS/text',
'jquery': "../../Scripts/JQuery/jquery-2.1.1",
'JQueryUI': "../../Scripts/JQueryUI/jquery-ui.min",
'app': 'app'
},
shim: {
'app': {
deps: [ 'kendovendor']
},
'JQueryUI': {
deps: ['jquery']
}
}
});
Then I try to load it in a view model:
define(['JQueryUI', 'jquery'], function (jqui, jq) {
//jqui is undefined, jq is not.
...
}