<?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: Stencil Web Component with ES Modules in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239233#M79603</link>
    <description>&lt;P&gt;All good info, thanks for sharing your experience. Yes, there is a known issue with Stencil because it has it's own assetsPath setting that conflicts with&amp;nbsp; &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2022 17:21:06 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2022-12-08T17:21:06Z</dc:date>
    <item>
      <title>Stencil Web Component with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239143#M79598</link>
      <description>&lt;P&gt;We have web components that we embed on our website that I built with Stencil.&amp;nbsp; I am trying to move this from esri-loader to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core, which is working, except there is an issue when the popup appears.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a Codepen loading the web component:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/justingreco/pen/dyKrVvv" target="_blank"&gt;https://codepen.io/justingreco/pen/dyKrVvv&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the repo on GitHub:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CORaleigh/raleigh-map-components" target="_blank"&gt;https://github.com/CORaleigh/raleigh-map-components&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I get the following errors in the console when the popup appears:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinGreco1_0-1670509725039.png" style="width: 619px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57959i4A879EA91F81D4D8/image-dimensions/619x175?v=v2" width="619" height="175" role="button" title="JustinGreco1_0-1670509725039.png" alt="JustinGreco1_0-1670509725039.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I thought it was an issue with the build process, but I am seeing the same issue locally and get the following errors about not being able to lazy load calcite-icon, calcite-flow, and calcite-flow-item:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinGreco1_2-1670509860038.png" style="width: 701px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57961i9AEA232D599EF9BD/image-dimensions/701x296?v=v2" width="701" height="296" role="button" title="JustinGreco1_2-1670509860038.png" alt="JustinGreco1_2-1670509860038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 14:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239143#M79598</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2022-12-08T14:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Stencil Web Component with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239192#M79599</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233731"&gt;@Justin_Greco&lt;/a&gt; we aren't able to access your repo, it might be set to private. You might need to use setAssetPath for Calcite as mentioned here: &lt;A href="https://developers.arcgis.com/calcite-design-system/get-started/#custom-elements" target="_blank"&gt;https://developers.arcgis.com/calcite-design-system/get-started/#custom-elements?&lt;/A&gt;. If you give that a try, let us know if it helps?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 16:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239192#M79599</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-12-08T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stencil Web Component with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239199#M79600</link>
      <description>&lt;P&gt;Hi Andy, its should be public now.&amp;nbsp; I don't think I had mentioned, but I am not using Calcite Design System in these components, just the JavaScript API.&amp;nbsp; I can try importing and loading to see if it helps at all.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 16:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239199#M79600</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2022-12-08T16:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Stencil Web Component with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239204#M79601</link>
      <description>&lt;P&gt;Just imported&amp;nbsp;@esri/calcite-components and set the asset path and that resolved the issue.&amp;nbsp; As a test, I just uninstalled it and rolled back to 4.24 and am not seeing the issue.&amp;nbsp; Since the errors were referring to calcite-flow, I'm wondering if this is related to the addition of the related records at 4.25 since it looks like that functionality uses the flow component.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; Just created a new React app, installed just&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core 4.25, without calcite-components and loaded the web map and don't see the issue, so it must be related to Stencil then.&amp;nbsp; Since installing calcite-components worked, I'll just keep that in there.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 16:56:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239204#M79601</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2022-12-08T16:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stencil Web Component with ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239233#M79603</link>
      <description>&lt;P&gt;All good info, thanks for sharing your experience. Yes, there is a known issue with Stencil because it has it's own assetsPath setting that conflicts with&amp;nbsp; &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 17:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stencil-web-component-with-es-modules/m-p/1239233#M79603</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-12-08T17:21:06Z</dc:date>
    </item>
  </channel>
</rss>

