Using custom modules with our API is definitely possible, the key is to tell Dojo where to find your stuff, which you do via dojoConfig.packages (or dojoConfig.paths, slightly simpler syntax). What does your dojoConfig look like? Can you provide an example of a url for your app, where the JS API lives and where your custom modules live?
Okay, it turns out that those plugins were compatible with the dojo loader. I just needed to create a dojoconfig that pointed to the plugins in the paths property. It seems to be working for me now. Thanks for your help.
Have you looked at using Dojo's loader to load your require plug-ins? I'm not sure if they're compatible but it's worth trying: http://livedocs.dojotoolkit.org/loader/amd#pluginsWhat do your current requirejs plug-ins do?
What does requirejs do that you can't do with the Dojo module loader?
Spent another few minutes on Google, found this:http://stackoverflow.com/questions/17475515/using-requirejs-with-dojo-1-9-1Hope this helps.
You need to use the source/SDK version of the Dojo Toolkit. Built copies of AMD modules are not compatible between loaders.
I'm sure you saw: http://requirejs.org/docs/dojo.html Which leads to: https://bugs.dojotoolkit.org/ticket/15616Since the ticket discussed there is resolved, it should be possible. Some great comments further down; they should lead you in the right direction.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.