Select to view content in your preferred language

Error when app starts

1893
1
02-03-2016 02:51 PM
JerryGarcia
Occasional Contributor II

I get the attached error when my JavaScript app loads in Chrome. 

It is new.  It is in the esri js lib.

Can someone tell me how to debug it?

Thanks!

0 Kudos
1 Reply
SteveCole
Frequent Contributor

From what you've shared, I don't think there's enough posted to diagnose the source of the error. Since you say that the error is new, I'm going to assume that you recently added code / functionality to your application? If this is the case, go over your list of requires and make sure they are listed in the same order under the function() section. This is great place to look since it's easy to mess this up as one adds functionality into a growing application.

require([
    /*ordered list of modules to load*/
    "esri/map", 
    "esri/InfoTemplate",
    "esri/layers/FeatureLayer",
    "dojo/parser",
    "dojo/domReady!"
/*Beginning of anonymous callback function 
which fires once all modules have loaded*/
], function(  
    /*Variable names to refer to each loaded module*/
    Map, 
    InfoTemplate,
    FeatureLayer, 
    parser 
)   {                  /*Beginning of actual callback code*/
    parser.parse();
    map = new Map("mapDiv", { 
        basemap: "national-geographic",
        center: [-2.97, 53.41],
        zoom: 9
    });
    ...
0 Kudos