<?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 Fails to load third party libraries in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/fails-to-load-third-party-libraries/m-p/1118974#M3228</link>
    <description>&lt;P&gt;Hey, installed custom npm library, then i run&amp;nbsp;ArcGISExperienceBuilder\client&amp;gt; npm start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it fails on many libraries:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR in ./your-extensions/widgets/simple-lg/node_modules/debug/src/node.js 5:12-26&lt;BR /&gt;Module not found: Error: Can't resolve 'tty' in 'C:\Downloads\arcgis-experience-builder-1.6\ArcGISExperienceBuilder\client\your-extensions\widgets\simple-test\node_modules\debug\src'&lt;/P&gt;&lt;P&gt;BREAKING CHANGE: webpack &amp;lt; 5 used to include polyfills for node.js core modules by default.&lt;BR /&gt;This is no longer the case. Verify if you need this module and configure a polyfill for it.&lt;/P&gt;&lt;P&gt;If you want to include a polyfill, you need to:&lt;BR /&gt;- add a fallback 'resolve.fallback: { "tty": require.resolve("tty-browserify") }'&lt;BR /&gt;- install 'tty-browserify'&lt;BR /&gt;If you don't want to include a polyfill, you can use an empty module like this:&lt;BR /&gt;resolve.fallback: { "tty": false }&lt;/P&gt;</description>
    <pubDate>Sat, 20 Nov 2021 02:00:17 GMT</pubDate>
    <dc:creator>LaurynasGedminas2</dc:creator>
    <dc:date>2021-11-20T02:00:17Z</dc:date>
    <item>
      <title>Fails to load third party libraries</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/fails-to-load-third-party-libraries/m-p/1118974#M3228</link>
      <description>&lt;P&gt;Hey, installed custom npm library, then i run&amp;nbsp;ArcGISExperienceBuilder\client&amp;gt; npm start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it fails on many libraries:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR in ./your-extensions/widgets/simple-lg/node_modules/debug/src/node.js 5:12-26&lt;BR /&gt;Module not found: Error: Can't resolve 'tty' in 'C:\Downloads\arcgis-experience-builder-1.6\ArcGISExperienceBuilder\client\your-extensions\widgets\simple-test\node_modules\debug\src'&lt;/P&gt;&lt;P&gt;BREAKING CHANGE: webpack &amp;lt; 5 used to include polyfills for node.js core modules by default.&lt;BR /&gt;This is no longer the case. Verify if you need this module and configure a polyfill for it.&lt;/P&gt;&lt;P&gt;If you want to include a polyfill, you need to:&lt;BR /&gt;- add a fallback 'resolve.fallback: { "tty": require.resolve("tty-browserify") }'&lt;BR /&gt;- install 'tty-browserify'&lt;BR /&gt;If you don't want to include a polyfill, you can use an empty module like this:&lt;BR /&gt;resolve.fallback: { "tty": false }&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2021 02:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/fails-to-load-third-party-libraries/m-p/1118974#M3228</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-11-20T02:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fails to load third party libraries</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/fails-to-load-third-party-libraries/m-p/1119184#M3233</link>
      <description>&lt;P&gt;Hi Laurynas, thanks for the question. Which NPM library are you using? Can you please give a step by step replication case that we can follow so we can see the same error you're getting? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 14:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/fails-to-load-third-party-libraries/m-p/1119184#M3233</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2021-11-22T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fails to load third party libraries</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/fails-to-load-third-party-libraries/m-p/1119187#M3234</link>
      <description>&lt;P&gt;Hey Gavin,&lt;/P&gt;&lt;P&gt;The library:&amp;nbsp;&lt;A href="https://www.npmjs.com/package/stserver-frontend-comp" target="_blank"&gt;https://www.npmjs.com/package/stserver-frontend-comp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was able get workaround by modifying the webpack-extensions.common.js&amp;nbsp; resolve/fallback:&lt;/P&gt;&lt;P&gt;resolve: {&lt;BR /&gt;alias: webpackCommon.moduleAlias,&lt;BR /&gt;extensions: webpackCommon.extensions,&lt;BR /&gt;mainFields: webpackCommon.resolveMainFields,&lt;BR /&gt;fallback: {&lt;BR /&gt;"tty": require.resolve("tty-browserify"),&lt;BR /&gt;"https": require.resolve("https-browserify"),&lt;BR /&gt;"http": require.resolve("stream-http"),&lt;BR /&gt;"stream": require.resolve("stream-browserify"),&lt;BR /&gt;"zlib": require.resolve("browserify-zlib"),&lt;BR /&gt;"os": require.resolve("os-browserify/browser")&lt;BR /&gt;}&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;but the component fails to load into widget&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Laurynas&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 14:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/fails-to-load-third-party-libraries/m-p/1119187#M3234</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-11-22T14:53:18Z</dc:date>
    </item>
  </channel>
</rss>

