<?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: simplerenderer with ESM in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/simplerenderer-with-esm/m-p/1160546#M76908</link>
    <description>&lt;P&gt;If you are going to use pure ESM via the &lt;A href="https://developers.arcgis.com/javascript/latest/install-and-set-up/#es-modules-via-cdn" target="_self"&gt;ESM CDN,&lt;/A&gt; you need to add .js to filename.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/xxpPppQ?editors=0010" target="_blank"&gt;https://codepen.io/odoe/pen/xxpPppQ?editors=0010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Normally when using ESM, you would use build tools that don't need the file extension.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Apr 2022 17:24:48 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2022-04-02T17:24:48Z</dc:date>
    <item>
      <title>simplerenderer with ESM</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/simplerenderer-with-esm/m-p/1160512#M76905</link>
      <description>&lt;P&gt;New with ESM and API 4.x&lt;/P&gt;&lt;P&gt;I hit a wall trying to implement with ESM the simple renderer. What am I missing?&lt;/P&gt;&lt;P&gt;According to the:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the simplerenderer can be imported by:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_0-1648863185409.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38024iC3CD27D07FFEB666/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_0-1648863185409.png" alt="LefterisKoumis_0-1648863185409.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when I try to implement it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_1-1648863260607.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38025i8EB30935CA5EEA7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_1-1648863260607.png" alt="LefterisKoumis_1-1648863260607.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_3-1648863332911.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38027iB001D64A185BF0FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_3-1648863332911.png" alt="LefterisKoumis_3-1648863332911.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 01:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/simplerenderer-with-esm/m-p/1160512#M76905</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-04-02T01:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: simplerenderer with ESM</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/simplerenderer-with-esm/m-p/1160546#M76908</link>
      <description>&lt;P&gt;If you are going to use pure ESM via the &lt;A href="https://developers.arcgis.com/javascript/latest/install-and-set-up/#es-modules-via-cdn" target="_self"&gt;ESM CDN,&lt;/A&gt; you need to add .js to filename.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/xxpPppQ?editors=0010" target="_blank"&gt;https://codepen.io/odoe/pen/xxpPppQ?editors=0010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Normally when using ESM, you would use build tools that don't need the file extension.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 17:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/simplerenderer-with-esm/m-p/1160546#M76908</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-04-02T17:24:48Z</dc:date>
    </item>
  </channel>
</rss>

