AnsweredAssumed Answered

Cannot read property 'toLowerCase' of null

Question asked by Sara_EL_MALKI on May 19, 2017
Latest reply on May 23, 2017 by endlessdsire

Hi guys,

I am facing the error "Cannot read property to lower case of null"  each time I reload the page and it solves when I refresh it, sometimes it takes several attempts to load the map and everything related to the arcgis API, ( the error is in the image below) ,I've heard it's because of the order of the libraries, that's why I am printing here my libraries.

Also I have an error that says "Multiple define' at the top of the console and as I know it's because of using both Dojo and jquery, (that error does not prevent the app from working) here is the order of my files:

<link rel="stylesheet" href="js/claro.css">
<link rel="stylesheet" href="js/esri.css">
<link rel="stylesheet" href="js/dgrid.css">
<link rel="stylesheet" href="css/dockpanel.css">
<link rel="stylesheet" href="css/maincss.css">
<link rel="stylesheet" href="js/jquery-ui.css">
<script src="js/init.js"></script> //arcgis API for JavavScript
<script src="js/jquery-ui.js"></script>

and those are my librairies :How can I get rid of that error definitely ?

$( document ).ready(function() {

var map,updateFeature;

"dijit/form/Button","esri/geometry/Extent","esri/tasks/ProjectParameters","dojo/store/Memory","dijit/form/FilteringSelect", "dojo/ready", "dijit/Toolbar","dijit/layout/BorderContainer", "dijit/layout/ContentPane","dojo/domReady!"],
function(esriConfig, Map,Navigation, Graphic, RelationshipQuery, SnappingManager, Editor, FeatureLayer, GeometryService,
Draw, keys, parser, arrayUtils, i18n, FindTask, FindParameters, SimpleLineSymbol, SimpleFillSymbol,
SimpleMarkerSymbol, Color, UniqueValueRenderer, Grid, Selection, declare, on, dom, registry, Search, AttributeInspector, InfoTemplate,
Legend, LayerList, Query,QueryTask, domConstruct,
Button, Extent, ProjectParameters, Memory, FilteringSelect, ready) {