<?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: ⚠️ ArcGIS JS API doesn't work with the latest Angular CLI in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/%EF%B8%8F-arcgis-js-api-doesn-t-work-with-the-latest/m-p/1101243#M74756</link>
    <description>&lt;P&gt;There are known issues with Angular CLI 12.2.x+, they made significant changes to how they do optimization. You'll need to stay at versions 12.0.0 - 12.1.x. So far 13.0.0-next fixes the bug. Reference:&amp;nbsp;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli#known-issues" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli#known-issues&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 14:17:58 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2021-09-23T14:17:58Z</dc:date>
    <item>
      <title>⚠️ ArcGIS JS API doesn't work with the latest Angular CLI</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/%EF%B8%8F-arcgis-js-api-doesn-t-work-with-the-latest/m-p/1101192#M74755</link>
      <description>&lt;P&gt;There appears to be an issue with the latest ArcGIS JavaScript API working with the latest Angular CLI.&amp;nbsp;&lt;SPAN&gt;The issue is that when you use the latest Angular CLI to generate a new project (&lt;/SPAN&gt;ng new my_project&lt;SPAN&gt;) and then include a simple map in the project, the map will not work when building the app in&amp;nbsp;&lt;/SPAN&gt;production&lt;SPAN&gt;&amp;nbsp;mode. The map works fine when it is running in&amp;nbsp;&lt;/SPAN&gt;development&lt;SPAN&gt;, but not production.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The issue can be reproduced using the following repository:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/rustygreen/arcgis-angular-issue-example#readme" target="_blank" rel="noopener"&gt;rustygreen/arcgis-angular-issue-example (github.com)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code in the repository was created by simply running the `ng new` command using the latest version of the Angular CLI and then I added a simple ArcGIS JS API map to it.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Steps to reproduce&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Clone this repository&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;git clone &lt;A href="https://github.com/rustygreen/arcgis-angular-issue-example.git" target="_blank" rel="noopener"&gt;https://github.com/rustygreen/arcgis-angular-issue-example.git&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Install packages&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;npm install&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Run in development&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;npm run start&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;*Note: the map shows without any issue&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Run in production&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;npm run start -- --configuration production&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;:collision:&lt;/img&gt;NOTE: the map will not show and an error is in the console from the ArcGIS JS API&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/%EF%B8%8F-arcgis-js-api-doesn-t-work-with-the-latest/m-p/1101192#M74755</guid>
      <dc:creator>RussellMGreen</dc:creator>
      <dc:date>2021-09-23T13:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: ⚠️ ArcGIS JS API doesn't work with the latest Angular CLI</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/%EF%B8%8F-arcgis-js-api-doesn-t-work-with-the-latest/m-p/1101243#M74756</link>
      <description>&lt;P&gt;There are known issues with Angular CLI 12.2.x+, they made significant changes to how they do optimization. You'll need to stay at versions 12.0.0 - 12.1.x. So far 13.0.0-next fixes the bug. Reference:&amp;nbsp;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli#known-issues" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli#known-issues&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/%EF%B8%8F-arcgis-js-api-doesn-t-work-with-the-latest/m-p/1101243#M74756</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-09-23T14:17:58Z</dc:date>
    </item>
  </channel>
</rss>

