<?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: Issues with moving from esri-loader to ES Modules in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052279#M72779</link>
    <description>&lt;P&gt;When using the npm packages for&amp;nbsp;@arcgis/core or arcgis-js-api, you don't need to install the typings separately. They packages already include them.&lt;/P&gt;&lt;P&gt;As for the second error, tough to debug without a repro sample to look at. Could be an issue that the element you're using for the map container isn't ready or something else.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 14:37:35 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-04-28T14:37:35Z</dc:date>
    <item>
      <title>Issues with moving from esri-loader to ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052100#M72775</link>
      <description>&lt;P&gt;I am trying to move my code from using esri-loader to using @argic/core in Javascript 4.19.&amp;nbsp; I have run these npm commands:&lt;/P&gt;&lt;P&gt;npm install @arcgis/core&lt;/P&gt;&lt;P&gt;npm install @types/arcgis-js-api@latest --save-exact&lt;/P&gt;&lt;P&gt;Then I updated my code with the “import … from '@arcgis/core/…;” statements and modified codes as needed.&amp;nbsp; When compile, it gives me “TS6200: Definitions of the following identifiers conflict with those in another file” on&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:node_modules/@arcgis/core/interfaces.d.ts" target="_blank"&gt;node_modules/@arcgis/core/interfaces.d.ts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:node_modules/@types/arcgis-js-api/index.d.ts" target="_blank"&gt;node_modules/@types/arcgis-js-api/index.d.ts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So, I tried remove “arcgis-js-api” from “types” in tsconfig.app.json and tsconfig.spec.json.&amp;nbsp; It now compiles.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VivienWong_0-1619590773383.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12020i49429647CCEBB0BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VivienWong_0-1619590773383.png" alt="VivienWong_0-1619590773383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when the map is being loaded, it hits a series of “TypeError: &amp;nbsp;Cannot convert undefined or null to object” and gives an empty map with no layers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VivienWong_2-1619591046850.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12022i9A9736DFE649BE4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VivienWong_2-1619591046850.png" alt="VivienWong_2-1619591046850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 06:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052100#M72775</guid>
      <dc:creator>VivienWong</dc:creator>
      <dc:date>2021-04-28T06:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with moving from esri-loader to ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052279#M72779</link>
      <description>&lt;P&gt;When using the npm packages for&amp;nbsp;@arcgis/core or arcgis-js-api, you don't need to install the typings separately. They packages already include them.&lt;/P&gt;&lt;P&gt;As for the second error, tough to debug without a repro sample to look at. Could be an issue that the element you're using for the map container isn't ready or something else.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 14:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052279#M72779</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-04-28T14:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with moving from esri-loader to ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052344#M72788</link>
      <description>&lt;P&gt;Thanks Rene.&amp;nbsp; Do I need to uninstall the typings which I have installed separately?&amp;nbsp; Is it correct for me to exclude&amp;nbsp;&lt;SPAN&gt;“arcgis-js-api” from “types” in tsconfig.app.json and tsconfig.spec.json?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 16:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052344#M72788</guid>
      <dc:creator>VivienWong</dc:creator>
      <dc:date>2021-04-28T16:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with moving from esri-loader to ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052356#M72790</link>
      <description>&lt;P&gt;You can uninstall the typings and you don't need to reference them in the tsconfig files.&lt;/P&gt;&lt;P&gt;The tsconfig in the TypeScript guide is a good reference&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/typescript-setup/#tsconfig" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/typescript-setup/#tsconfig&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Although it assumes you are using the CDN and need the typings, but still no reference to them in the tsconfig.&lt;/P&gt;&lt;P&gt;The same goes for building an app with webpack as well.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-js-cli/blob/master/templates/webpack/app/tsconfig.json" target="_blank"&gt;https://github.com/Esri/arcgis-js-cli/blob/master/templates/webpack/app/tsconfig.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 16:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1052356#M72790</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-04-28T16:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with moving from esri-loader to ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1091467#M74386</link>
      <description>&lt;P&gt;Did you ever figure the second issue out?&lt;BR /&gt;I'm having the same problem but only when I publish my application and not on development.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 21:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issues-with-moving-from-esri-loader-to-es-modules/m-p/1091467#M74386</guid>
      <dc:creator>SteveBurdette</dc:creator>
      <dc:date>2021-08-23T21:39:27Z</dc:date>
    </item>
  </channel>
</rss>

