AnsweredAssumed Answered

Adding esri/basemaps module breaks another module

Question asked by Georgie.Cassar on Sep 9, 2015
Latest reply on Sep 9, 2015 by Georgie.Cassar

I am starting with the ESRI Popup Sample script straight out of the box.  Nothing changed other than all http references are now https..

Here it is running from our web server.


Now I try to alter it to do some extra things like defining my own basemap.

Here is the same code and all I have done is added "esri/basemaps",   in the require section.  Nothing more.


It has caused the popup creation command to fail with an error  (using IE10)  : "SCRIPT438: Object doesn't support property or method 'create' "


This is the command where it breaks

var popup = new Popup({

            fillSymbol: fill,

            titleInBody: false

        }, domConstruct.create("div"));


Why would simply adding a module break another one ?  Is there a special order I have to list them ?

This is the order I have done it :




        "esri/dijit/Popup", "esri/dijit/PopupTemplate",


        "esri/symbols/SimpleFillSymbol", "esri/Color",

        "dojo/dom-class", "dojo/dom-construct", "dojo/on",

        "dojox/charting/Chart", "dojox/charting/themes/Dollar",


      ], function(........