<?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: Sharing a third party library in Experience Builder Custom Widgets</title>
    <link>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476862#M326</link>
    <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":ghost:"&gt;👻&lt;/span&gt;I don't know. I'm usually just making stuff up. I throw out an idea, somebody tries it, then I know if it works.&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 12:31:01 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2024-05-22T12:31:01Z</dc:date>
    <item>
      <title>Sharing a third party library</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476047#M320</link>
      <description>&lt;P&gt;Does anyone know how we should be sharing third party libraries across multiple widgets?&lt;BR /&gt;&lt;BR /&gt;I have read some documentation and seen examples, but I'm not quite sure I grasp the concept yet. For example, if I'd like to use react query across multiple widgets, do I install it in the client folder? I've seen esri's &lt;A href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/d3/src/runtime" target="_self"&gt;d3 example&lt;/A&gt;, where they copied the library to the runtime folder of the widget, but can we not just import the module that's installed in the client folder node_modules? Would I need to copy the library to every widget I want to use it in?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate anyone's insight.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 06:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476047#M320</guid>
      <dc:creator>PartyPelican</dc:creator>
      <dc:date>2024-05-21T06:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing a third party library</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476217#M322</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/experience-builder/guide/share-code-between-widgets/" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/share-code-between-widgets/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Experience Builder 1.14 has the shared code feature. I believe you could save the library in a shared folder, so it only needs to be downloaded once.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 12:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476217#M322</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-05-21T12:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing a third party library</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476602#M325</link>
      <description>&lt;P&gt;I gave this a try.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I created a shared-code folder in the widgets directory. Then I ran npm init and npm install to install react query in the shared-code folder. I created a index.js file that imports the react query library and exports it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Then in my custom widget, I imported the library from that shared-code index.js file. My IDE recognizes the library, but the browser console shows a Load Module Error.&lt;BR /&gt;&lt;BR /&gt;Do you know what I might be doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 21:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476602#M325</guid>
      <dc:creator>PartyPelican</dc:creator>
      <dc:date>2024-05-21T21:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing a third party library</title>
      <link>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476862#M326</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":ghost:"&gt;👻&lt;/span&gt;I don't know. I'm usually just making stuff up. I throw out an idea, somebody tries it, then I know if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 12:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/experience-builder-custom-widgets/sharing-a-third-party-library/m-p/1476862#M326</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-05-22T12:31:01Z</dc:date>
    </item>
  </channel>
</rss>

