<?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: Map is not completing the load in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1172247#M77251</link>
    <description>&lt;P&gt;I'm experiencing something similar.&amp;nbsp; Using React 17 in dev mode the AGO webmap loads as expected.&amp;nbsp; Run build and the web map does not load at all, although I see the esri-view-root div added to the DOM.&amp;nbsp; I noticed the canvas tag, shown below in dev mode, is missing from the DOM when running the production build version of the app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewSouthern_0-1652139601635.png" style="width: 591px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40963i97F002C18158F34A/image-dimensions/591x160?v=v2" width="591" height="160" role="button" title="AndrewSouthern_0-1652139601635.png" alt="AndrewSouthern_0-1652139601635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks to your suggesting I updated to 4.24 and the problem seems to be resolved.&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 23:55:04 GMT</pubDate>
    <dc:creator>AndrewSouthern</dc:creator>
    <dc:date>2022-05-09T23:55:04Z</dc:date>
    <item>
      <title>Map is not completing the load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1170014#M77206</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;We've run into a strange issue, and we can't seem to figure this one out.&lt;/P&gt;&lt;P&gt;We are using React (v17.0.2, react-scripts 4.0.3), and the ES modules of Arcgis (4.23.7). We are loading the map like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import MapView from '@arcgis/core/views/MapView';
import Map from '@arcgis/core/Map';

const map = new Map({
  basemap: 'arcgis-navigation',
});

const view = new MapView({
  container, // container is a ref to a html element div
  map
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running this in a react component - using Create-React-App, and when running this using the development mode (react-scripts start) - unminified - it is loading perfectly fine and working really well:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeterJohansson_0-1651567701564.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40373i95ACC5F602AE5748/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PeterJohansson_0-1651567701564.png" alt="PeterJohansson_0-1651567701564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However - when create a minified build (react-scripts build) and serve it from there - it stops mid-loading after the VectorTileServer call - which seems to respond well with the same results as the unminified one. I've gone through and checked every call Arcgis makes and they all match up perfectly - the only difference is that it won't go on and load the next call. How could this be?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeterJohansson_1-1651567827462.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40374i048E57C2ABCE50AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PeterJohansson_1-1651567827462.png" alt="PeterJohansson_1-1651567827462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I wonder what could be causing this - and I would gladly take any ideas on how to troubleshoot this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a minimal repository at github to reproduce this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/mikael-mansson/arcgis-test" target="_blank"&gt;https://github.com/mikael-mansson/arcgis-test&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will fire up a simple map - and it works fine when running:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;yarn
yarn start&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It won't work when running:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;yarn
yarn build
yarn global add serve
serve -s build&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 11:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1170014#M77206</guid>
      <dc:creator>PeterJohansson</dc:creator>
      <dc:date>2022-05-03T11:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Map is not completing the load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1170044#M77207</link>
      <description>&lt;P&gt;You might need to update your browser list as described here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app#misc" target="_blank" rel="noopener"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app#misc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit 1:&lt;/P&gt;&lt;P&gt;Nevermind, looking at your project, I see you did. I can look at this later today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit 2:&lt;/P&gt;&lt;P&gt;I don't know, your repro app works fine. I tried with yarn and npm, no issues. Does this happen on a particular browser/os? I tested on Mac with Chrome, FF, and Safari.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 12:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1170044#M77207</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-05-03T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Map is not completing the load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1170091#M77211</link>
      <description>&lt;P&gt;Thanks ReneRubalcava for testing it out - it's strange - when I clone it again myself it's working fine.&lt;/P&gt;&lt;P&gt;Anyway it still didn't work in my original application - but I solved it by updating arcgis/core to&amp;nbsp;&lt;A title="4.24.0-next.20220502" href="https://www.npmjs.com/package/@arcgis/core/v/4.24.0-next.20220502" target="_blank" rel="noopener"&gt;4.24.0-next.20220502&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 13:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1170091#M77211</guid>
      <dc:creator>PeterJohansson</dc:creator>
      <dc:date>2022-05-03T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Map is not completing the load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1172247#M77251</link>
      <description>&lt;P&gt;I'm experiencing something similar.&amp;nbsp; Using React 17 in dev mode the AGO webmap loads as expected.&amp;nbsp; Run build and the web map does not load at all, although I see the esri-view-root div added to the DOM.&amp;nbsp; I noticed the canvas tag, shown below in dev mode, is missing from the DOM when running the production build version of the app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewSouthern_0-1652139601635.png" style="width: 591px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40963i97F002C18158F34A/image-dimensions/591x160?v=v2" width="591" height="160" role="button" title="AndrewSouthern_0-1652139601635.png" alt="AndrewSouthern_0-1652139601635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks to your suggesting I updated to 4.24 and the problem seems to be resolved.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 23:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-is-not-completing-the-load/m-p/1172247#M77251</guid>
      <dc:creator>AndrewSouthern</dc:creator>
      <dc:date>2022-05-09T23:55:04Z</dc:date>
    </item>
  </channel>
</rss>

