Require is not defined?

7608
1
04-07-2015 10:23 AM
CharlesGant
New Contributor III

Can anyone tell me why all of a sudden my API map page is throwing an "Reference Error: require is not defined" error?  I changed nothing in the code, and it just started about 30 minutes ago.  Below is my api reference.  I have many requires, just cut the code down for this purpose.

<link rel="stylesheet" href="http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.9/js/esri/css/esri.css">

<script src="http://js.arcgis.com/3.9/"></script>
<script>
//Primary JS script for ESRI API Call         
var map;
require(["esri/map",..], function(Map,.... ){...}

</script>

0 Kudos
1 Reply
JeremieCornet1
Occasional Contributor II

It could be a network issue (script http://js.arcgis.com/3.9/ not loaded !).

Try with your browser developer's console opened and watch network trafic.

0 Kudos