<?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: 'Set' is undefined (API v 4.3, Internet Explorer only) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468851#M43485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems possible that IE 11 has limited support for &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set"&gt;Sets&lt;/A&gt;&amp;nbsp;which are relatively new to JavaScript. &amp;nbsp;I'm not 100% sure this is the issue, and&amp;nbsp;that page does indicate that basic support exists in IE 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend&amp;nbsp;using a polyfill like:&amp;nbsp;&lt;A class="link-titled" href="https://www.npmjs.com/package/es6-set" title="https://www.npmjs.com/package/es6-set"&gt;es6-set&lt;/A&gt;&amp;nbsp;and ensuring that it loads before the JS API, if only to rule out that this is the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jun 2017 16:01:11 GMT</pubDate>
    <dc:creator>ThomasSolow</dc:creator>
    <dc:date>2017-06-10T16:01:11Z</dc:date>
    <item>
      <title>'Set' is undefined (API v 4.3, Internet Explorer only)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468850#M43484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My map application is working beautifully in Chrome and FireFox. &amp;nbsp;But when I try it in Internet Explorer (v11), the api is looking like there is a glitch. &amp;nbsp;Nothing loads and my console shows this error:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;SCRIPT5009: 'Set' is undefined&lt;/P&gt;&lt;P&gt;File: 4.3, Line: 18, Column: 307&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Clicking to view that location in the debugger shows the cursor at the beginning of a throw statement within:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;d.result=void 0===c&amp;amp;&amp;amp;d.cjs?d.cjs.exports:c;ra(d)}return d.result},ya=0,G=function(d){try{ya++,d()}catch(hb){throw hb;}finally{ya--}pa()&amp;amp;&amp;amp;D("idle",[])},&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No errors or warnings are present to show possible issues arising from my own javascript coding. &amp;nbsp;Any suggestions on how to get past this? &amp;nbsp;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 20:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468850#M43484</guid>
      <dc:creator>DataSteward</dc:creator>
      <dc:date>2017-06-09T20:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'Set' is undefined (API v 4.3, Internet Explorer only)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468851#M43485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems possible that IE 11 has limited support for &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set"&gt;Sets&lt;/A&gt;&amp;nbsp;which are relatively new to JavaScript. &amp;nbsp;I'm not 100% sure this is the issue, and&amp;nbsp;that page does indicate that basic support exists in IE 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend&amp;nbsp;using a polyfill like:&amp;nbsp;&lt;A class="link-titled" href="https://www.npmjs.com/package/es6-set" title="https://www.npmjs.com/package/es6-set"&gt;es6-set&lt;/A&gt;&amp;nbsp;and ensuring that it loads before the JS API, if only to rule out that this is the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jun 2017 16:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468851#M43485</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-10T16:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: 'Set' is undefined (API v 4.3, Internet Explorer only)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468852#M43486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas, that was helpful, though it hasn't helped me to fully solve the problem. I can get IE to work with my map if I set the compatibility mode to 'edge' (though only if I do so manually). &amp;nbsp;By setting it with my html header meta, I can get most maps to load fine in IE, except when I load multiple ImageLayers (even if not set to visible). &amp;nbsp;For now, I guess I'll set my map up to only provide a single ImageLayer if the client is IE, along with a note to suggest using an alternate browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 16:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468852#M43486</guid>
      <dc:creator>DataSteward</dc:creator>
      <dc:date>2017-06-15T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: 'Set' is undefined (API v 4.3, Internet Explorer only)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468853#M43487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, interesting. &amp;nbsp;I'd like to look into this but I don't have a windows machine to run IE &amp;nbsp;without jumping through a lot of hoops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can confirm that the JS API uses Sets. &amp;nbsp;If browser compatibility is the issue (some browsers not supporting some aspects of Sets that the API makes use of) then a polyfill seems like the only viable option. &amp;nbsp;Ideally that would be done in the API so users didn't have to worry about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/guide/system-requirements/index.html"&gt;IE 11 is supposed to work with the 4.XX API&lt;/A&gt;, and I understand that it's still widely used, so this seems like a pretty significant issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 16:28:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-is-undefined-api-v-4-3-internet-explorer-only/m-p/468853#M43487</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-15T16:28:32Z</dc:date>
    </item>
  </channel>
</rss>

