injecting esri js 3.3 collides with existing internal require.js library

712
4
04-03-2013 11:45 AM
erikyuzwa
New Contributor
Hi all,

We're trying to load up the ESRI 3.3 javascript for some testing, but we've discovered that the dojo loader that is used, collides with the existing require.js setup we've been using in our internal application.

Is there a simple way to make these 2 coincide without needing to overhaul our entire library to use dojo?

on the esri side we're using:

<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3compact"></script>


thanks!
0 Kudos
4 Replies
TylerRothermund
New Contributor II
I'm having the same problem.  Any solutions???
0 Kudos
ReneRubalcava
Frequent Contributor
What kind of error are you getting? A multiple define or a a "require has no method on" error?
According to this ticket, it should be doable with latest API 3.5 as it's based on Dojo 1.8.3, but I have not tried mixing the two
https://bugs.dojotoolkit.org/ticket/15616
0 Kudos
NigelAlford
New Contributor III
anyone make progress with this?
0 Kudos
JonathanUihlein
Esri Regular Contributor
How to use RequireJS with Dojo - http://requirejs.org/docs/dojo.html

This led me to: https://bugs.dojotoolkit.org/ticket/15616

Some solutions and suggestions are in the comments. Hope this helps!
0 Kudos