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!
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.
/*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 }); ...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
});
...
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.