esri/arcgis/utils module- 3.3 API- is AMD loading broken?

636
2
01-16-2013 07:40 AM
JimSomerville
New Contributor II
I changed the reference from 3.2 to 3.3, and this module which was working in 3.2, does not seem to initialize properly with 3.3 require statement.

require(["esri/arcgis/utils"...


Gives the error:
"Uncaught TypeError: Cannot set property 'arcgisUrl' of undefined http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/arcgis/utils.js:19"

It retrieves the .js file, but that's the error that occurs- before the require statement's callback fires.

Thanks.
0 Kudos
2 Replies
ReneRubalcava
Frequent Contributor
Where are you placing this require statement? I just tried it and it worked, even returned a utils object.

Is this inside a define() module or the entry point for your application?
0 Kudos
JimSomerville
New Contributor II
You'll have to excuse all the commented code, junk, etcetera, but in the following page I just changed the 3.2 references to 3.3, and it won't hit the require callback (line 72).

source code

Update: Hmm, I switched the order of the includes in the require statement (scalebar first, then utils), and it loads now.  Oh well.  Thanks, Rene.
0 Kudos