<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding esri/basemaps module breaks another module in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-esri-basemaps-module-breaks-another-module/m-p/475607#M44176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&amp;nbsp; Haven't used the Javascript API since it changed to AMD style.&amp;nbsp; I've learn't something today !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 03:13:38 GMT</pubDate>
    <dc:creator>GeorgieCassar</dc:creator>
    <dc:date>2015-09-10T03:13:38Z</dc:date>
    <item>
      <title>Adding esri/basemaps module breaks another module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-esri-basemaps-module-breaks-another-module/m-p/475605#M44174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am starting with the ESRI Popup Sample script straight out of the &lt;A href="https://developers.arcgis.com/javascript/jssamples/popup_chart.html"&gt;box&lt;/A&gt;.&amp;nbsp; Nothing changed other than all http references are now https..&lt;/P&gt;&lt;P&gt;Here it is running from our web server.&amp;nbsp;&amp;nbsp; &lt;A href="https://ecouncil.portenf.sa.gov.au/mapping/InspectorLoc/esri-popup-sample.html"&gt;https://ecouncil.portenf.sa.gov.au/mapping/InspectorLoc/esri-popup-sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I try to alter it to do some extra things like defining my own basemap.&lt;/P&gt;&lt;P&gt;Here is the same code and all I have done is added &lt;STRONG&gt;"esri/basemaps",&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; in the require section.&amp;nbsp; Nothing more.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ecouncil.portenf.sa.gov.au/mapping/InspectorLoc/esri-popup-sample_moduleadded.html"&gt;https://ecouncil.portenf.sa.gov.au/mapping/InspectorLoc/esri-popup-sample_moduleadded.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has caused the popup creation command to fail with an error&amp;nbsp; (using IE10)&amp;nbsp; : "SCRIPT438: Object doesn't support property or method 'create' "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the command where it breaks&lt;/P&gt;&lt;P&gt;var popup = new Popup({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fillSymbol: fill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; titleInBody: false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, domConstruct.create("div"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would simply adding a module break another one ?&amp;nbsp; Is there a special order I have to list them ?&lt;/P&gt;&lt;P&gt;This is the order I have done it :&lt;/P&gt;&lt;P&gt;require([&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/map",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/basemaps",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/dijit/Popup", "esri/dijit/PopupTemplate",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/layers/FeatureLayer",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/symbols/SimpleFillSymbol", "esri/Color",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/dom-class", "dojo/dom-construct", "dojo/on",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojox/charting/Chart", "dojox/charting/themes/Dollar",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ], function(........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 01:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-esri-basemaps-module-breaks-another-module/m-p/475605#M44174</guid>
      <dc:creator>GeorgieCassar</dc:creator>
      <dc:date>2015-09-10T01:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding esri/basemaps module breaks another module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-esri-basemaps-module-breaks-another-module/m-p/475606#M44175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Georgie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The most common mistake for JS API beginners is that they add a require and there vars do not match. You have to have your requires aligned with the vars in order. See line 12. You added the require but you never added the corresponding var&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([
&lt;SPAN&gt;&amp;nbsp; "esri/map",
&amp;nbsp; "esri/basemaps",
&amp;nbsp; "esri/dijit/Popup", "esri/dijit/PopupTemplate",
&amp;nbsp; "esri/layers/FeatureLayer",
&amp;nbsp; "esri/symbols/SimpleFillSymbol", "esri/Color",
&amp;nbsp; "dojo/dom-class", "dojo/dom-construct", "dojo/on",
&amp;nbsp; "dojox/charting/Chart", "dojox/charting/themes/Dollar",
&amp;nbsp; "dojo/domReady!"
&amp;nbsp; ], function(
&amp;nbsp; Map,&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;&amp;nbsp; esriBasemaps,&lt;/SPAN&gt;
&amp;nbsp; Popup, PopupTemplate,
&amp;nbsp; FeatureLayer,
&amp;nbsp; SimpleFillSymbol, Color,
&amp;nbsp; domClass, domConstruct, on,
&amp;nbsp; Chart, theme
&amp;nbsp; )&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not continue to check your code for other errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:02:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-esri-basemaps-module-breaks-another-module/m-p/475606#M44175</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T21:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding esri/basemaps module breaks another module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-esri-basemaps-module-breaks-another-module/m-p/475607#M44176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&amp;nbsp; Haven't used the Javascript API since it changed to AMD style.&amp;nbsp; I've learn't something today !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 03:13:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-esri-basemaps-module-breaks-another-module/m-p/475607#M44176</guid>
      <dc:creator>GeorgieCassar</dc:creator>
      <dc:date>2015-09-10T03:13:38Z</dc:date>
    </item>
  </channel>
</rss>

