Error while loading multiple Dojo

570
3
Jump to solution
11-01-2012 08:42 AM
MoizBhukhiya
New Contributor II
Hello!

I have an application running Dojo 1.7.1 and I am trying to add ESRI maps to it.
When I load v3.2 I keep getting these errors http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2:
TypeError: _14c.syncLoadNls is not a function
TypeError: i18n._preloadLocalizations is not a function

When I load version 1.6 or 2.0 it works fine. http://serverapi.arcgisonline.com/jsapi/arcgis/?v=1.6 (2.0)

What version of Dojo is used in ESRI 3.2? I guess its 1.7.3..
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Frequent Contributor
<snip>... I just provided the path to esri modules in dojoConfig (packages=>location) and it seems to work fine. Is it in any case unsafe?


We don't test that but if it works for you...go for it.

View solution in original post

0 Kudos
3 Replies
derekswingley1
Frequent Contributor
What version of Dojo is used in ESRI 3.2? I guess its 1.7.3..


Yes, 3.2 uses Dojo 1.7.3. Rather than loading your separate copy of 1.7.1, can you use the 1.7.3 that's bundled with our API?
0 Kudos
MoizBhukhiya
New Contributor II
Yes, 3.2 uses Dojo 1.7.3. Rather than loading your separate copy of 1.7.1, can you use the 1.7.3 that's bundled with our API?


Thank you for your response swingley!

Currently I have dependency on 1.7.1.
Instead of loading dojo.js and jsapi.js, I just provided the path to esri modules in dojoConfig (packages=>location) and it seems to work fine. Is it in any case unsafe?
Thanks!!
0 Kudos
derekswingley1
Frequent Contributor
<snip>... I just provided the path to esri modules in dojoConfig (packages=>location) and it seems to work fine. Is it in any case unsafe?


We don't test that but if it works for you...go for it.
0 Kudos