<?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 Basemap does not display when bundled/minimized in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1177968#M77503</link>
    <description>&lt;P&gt;Hi ESRI community!&lt;/P&gt;&lt;P&gt;First post here, and fairly new to the ArcGIS API for JavaScript, so please bear with me!&lt;/P&gt;&lt;P&gt;My web app is in Angular 13, and uses version 4.23.7 of the API.&amp;nbsp; I'm using ES modules.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The map works fine in our local development environments, and in our deployed Test environment.&amp;nbsp; It does not display the basemap (or our graphic layer) in our Staging and Production environments.&amp;nbsp; The difference is that Staging and Production are bundled/minimized, while the local development and Testing environments are not.&lt;/P&gt;&lt;P&gt;The error message I'm getting is&amp;nbsp;&lt;/P&gt;&lt;P&gt;main.js:118 [esri.layers.VectorTileLayer] #load() Failed to load layer (title: 'Light Gray Canvas Labels', id: '18105e27efe-layer-2')&lt;/P&gt;&lt;P&gt;There is an inner exception here:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TypeError: w is not a function or its return value is not iterable at X (&lt;A href="https://xxxx.xx.xxx/5460.js:1:307" target="_blank"&gt;https://xxxx.xx.xxx/5460.js:1:307&lt;/A&gt;) at ae._initializeTilemapDefinition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The map div does load, and shows the zoom in/out buttons (the + and - icons), as well as the "Powered by Esri) attribution label in the bottom-right corner of the map.&amp;nbsp; But no tiles.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for reading this post, and any ideas you have.&amp;nbsp; Very excited to be part of this community!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 14:36:15 GMT</pubDate>
    <dc:creator>FunkMonkey33</dc:creator>
    <dc:date>2022-05-27T14:36:15Z</dc:date>
    <item>
      <title>Basemap does not display when bundled/minimized</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1177968#M77503</link>
      <description>&lt;P&gt;Hi ESRI community!&lt;/P&gt;&lt;P&gt;First post here, and fairly new to the ArcGIS API for JavaScript, so please bear with me!&lt;/P&gt;&lt;P&gt;My web app is in Angular 13, and uses version 4.23.7 of the API.&amp;nbsp; I'm using ES modules.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The map works fine in our local development environments, and in our deployed Test environment.&amp;nbsp; It does not display the basemap (or our graphic layer) in our Staging and Production environments.&amp;nbsp; The difference is that Staging and Production are bundled/minimized, while the local development and Testing environments are not.&lt;/P&gt;&lt;P&gt;The error message I'm getting is&amp;nbsp;&lt;/P&gt;&lt;P&gt;main.js:118 [esri.layers.VectorTileLayer] #load() Failed to load layer (title: 'Light Gray Canvas Labels', id: '18105e27efe-layer-2')&lt;/P&gt;&lt;P&gt;There is an inner exception here:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TypeError: w is not a function or its return value is not iterable at X (&lt;A href="https://xxxx.xx.xxx/5460.js:1:307" target="_blank"&gt;https://xxxx.xx.xxx/5460.js:1:307&lt;/A&gt;) at ae._initializeTilemapDefinition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The map div does load, and shows the zoom in/out buttons (the + and - icons), as well as the "Powered by Esri) attribution label in the bottom-right corner of the map.&amp;nbsp; But no tiles.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for reading this post, and any ideas you have.&amp;nbsp; Very excited to be part of this community!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 14:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1177968#M77503</guid>
      <dc:creator>FunkMonkey33</dc:creator>
      <dc:date>2022-05-27T14:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap does not display when bundled/minimized</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1177976#M77504</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/590342"&gt;@FunkMonkey33&lt;/a&gt;&amp;nbsp;&amp;nbsp;It might be a transpiler issue - take a look at the browserslistrc in our Angular sample =&amp;gt; &lt;A href="https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-angular-cli/.browserslistrc" target="_blank"&gt;https://github.com/Esri/jsapi-resources/blob/master/esm-samples/jsapi-angular-cli/.browserslistrc&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 14:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1177976#M77504</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-05-27T14:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap does not display when bundled/minimized</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1177998#M77506</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; Our .browserslistrc has the same contents as the one referenced above.&lt;/P&gt;&lt;P&gt;A colleague of mine has suggested it could be a timing issue.&amp;nbsp; We don't wait for an event from the map indicating loading/initialization are complete.&amp;nbsp; We just use ngOnInit() which says that the component is initialized, but it may work locally/in our Test environment because the map loads faster.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe we should await mapView.ready before adding any layers? Is there a better event?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 15:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1177998#M77506</guid>
      <dc:creator>FunkMonkey33</dc:creator>
      <dc:date>2022-05-27T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap does not display when bundled/minimized</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1178063#M77510</link>
      <description>&lt;P&gt;The error signature looks more related to a compiler issue than an application life-cycle error, for example there aren't any null or undefined values. I talked to one of my vector tile layer colleagues and they hadn't seen that error before. Can you share a github link to a simple repository that reproduces the issue?&lt;/P&gt;&lt;P&gt;Oftentimes going through the exercise of creating a simple repro helps uncover the underlying issue. Without a repro case there's not much more we can do, there are too many variables and permutations of dependencies.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 19:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1178063#M77510</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-05-27T19:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap does not display when bundled/minimized</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1178067#M77511</link>
      <description>&lt;P&gt;Oh, one more thought. Even if it is a life-cycle issue related to something like a Symbol.iterator, we'd still need a repro case to figure out what part of the API might be choking.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 19:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1178067#M77511</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-05-27T19:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap does not display when bundled/minimized</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1179899#M77592</link>
      <description>&lt;P&gt;It did turn out to be a timing issue.&amp;nbsp; We are now awaiting the mapView's ready property to be true before we work with the map.&amp;nbsp; And our issue is resolved!&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 19:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-does-not-display-when-bundled-minimized/m-p/1179899#M77592</guid>
      <dc:creator>FunkMonkey33</dc:creator>
      <dc:date>2022-06-03T19:14:04Z</dc:date>
    </item>
  </channel>
</rss>

