<?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 @arcgis/core: Webpack build running out of memory when importing single ES6 Module in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1045202#M72416</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have spun up a Create React Application and any time I import a single module from arcgis/core e.g:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import Graphic from '@arcgis/core/Graphic'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my build process runs out of memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried building the sample React app here:&lt;BR /&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app" target="_blank" rel="noopener"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and am getting the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it has something to do with Tree Shaking:&amp;nbsp;&lt;A href="https://webpack.js.org/guides/tree-shaking/" target="_blank"&gt;https://webpack.js.org/guides/tree-shaking/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm pretty sure that by importing a single module it imports the entire arcgis/core dependency. I don't know if I'm not importing the modules correctly or if it isn't possible to import just the modules I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something that I'm missing?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 18:53:57 GMT</pubDate>
    <dc:creator>avecchi</dc:creator>
    <dc:date>2021-04-08T18:53:57Z</dc:date>
    <item>
      <title>@arcgis/core: Webpack build running out of memory when importing single ES6 Module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1045202#M72416</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have spun up a Create React Application and any time I import a single module from arcgis/core e.g:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import Graphic from '@arcgis/core/Graphic'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;my build process runs out of memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried building the sample React app here:&lt;BR /&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app" target="_blank" rel="noopener"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and am getting the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it has something to do with Tree Shaking:&amp;nbsp;&lt;A href="https://webpack.js.org/guides/tree-shaking/" target="_blank"&gt;https://webpack.js.org/guides/tree-shaking/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm pretty sure that by importing a single module it imports the entire arcgis/core dependency. I don't know if I'm not importing the modules correctly or if it isn't possible to import just the modules I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something that I'm missing?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 18:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1045202#M72416</guid>
      <dc:creator>avecchi</dc:creator>
      <dc:date>2021-04-08T18:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: @arcgis/core: Webpack build running out of memory when importing single ES6 Module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1063984#M73364</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Same for me, I'm not able to build my project anymore. Though I've sucessfully built &lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app&lt;/A&gt;, I get around 250 js chunks with this sample... Using esri_loader I had around 5 chunks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 09:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1063984#M73364</guid>
      <dc:creator>ClémentLaskar</dc:creator>
      <dc:date>2021-06-02T09:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: @arcgis/core: Webpack build running out of memory when importing single ES6 Module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1072592#M73626</link>
      <description>&lt;P&gt;Yeah I had to use esri-loader. I wonder if this has been fixed in the latest version of @arcgis/core&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 14:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1072592#M73626</guid>
      <dc:creator>avecchi</dc:creator>
      <dc:date>2021-06-25T14:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: @arcgis/core: Webpack build running out of memory when importing single ES6 Module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1325203#M82143</link>
      <description>&lt;P&gt;Any updates about this one?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 12:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1325203#M82143</guid>
      <dc:creator>HamzaAmdouni</dc:creator>
      <dc:date>2023-09-04T12:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: @arcgis/core: Webpack build running out of memory when importing single ES6 Module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1333415#M82344</link>
      <description>&lt;P&gt;Any updates? Having a similar issue. I am building a component as part of a library, and that always ends up with 300 chunks, Ideally I would pack them straight into the single exported js file.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1333415#M82344</guid>
      <dc:creator>OlYoung</dc:creator>
      <dc:date>2023-09-28T15:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: @arcgis/core: Webpack build running out of memory when importing single ES6 Module</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1339996#M82524</link>
      <description>&lt;P&gt;I'm having the same problem. I tried to use esri-loader instead, as &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/467845"&gt;@avecchi&lt;/a&gt; said they've been using that instead, but I couldn't get it to work.&lt;/P&gt;&lt;P&gt;The only (temprary) fix I could find was increasing the memory usage through NODE_OPTIONS (with --max-old-space-size)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 13:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-core-webpack-build-running-out-of-memory/m-p/1339996#M82524</guid>
      <dc:creator>tlepel</dc:creator>
      <dc:date>2023-10-20T13:46:13Z</dc:date>
    </item>
  </channel>
</rss>

