requirejs - Configuring dojo loader paths -


i'm having trouble setting dojo. defined in dojo config seems correctly load using localhost:8080/scripts/foo.js path. if try load module without this, say:

require(['foo'], function (_foo) { }); 

then client fails request, attempted path being localhost:8080/foo.js. wrong.

what need change?

// configuration dojo amd module loader dojoconfig = {    baseurl: "/scripts",    packages: [{       name: 'esri',       location: 'esri'    }, {       name: 'dojo',       location: 'dojo/dojo'    }, {       name: 'dojox',       location: 'dojo/dojox'    }, {       name: 'dijit',       location: 'dojo/dijit'    }, {       name: 'jquery',       location: '.',       main: 'jquery-2.0.2'    }, 

thanks.

either of these solve problem:

  1. set dojoconfig.tlmsiblingofdojo = false.
  2. define 'foo' package explicit location.

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -