This question is locked. New answers and comments are not allowed.
I must be missing something obvious. I am trying to setup a cordova app using requirejs. When deploying to a device none of the libraries load. I assume it has to do with the file system and I am not setting the paths correctly.
requirejs.config({
baseUrl: '/',
paths: {
bootstrap: 'Scripts/lib/bootstrap.min',
jquery: 'Scripts/lib/jquery.min',
knockout: 'Scripts/lib/knockout',
//text: 'bower_components/requirejs-text/text',
}
});
Just a simple require of jquery and "$" is undefined.
requirejs(['jquery'], function ($) {
alert('$: ' + $);
});
In the online simulator debugging tells me it can't find the jquery file. MY local native simulator works fine.
Any ideas? I know it must be something simple I am over looking.