Hi ESRI community!
First post here, and fairly new to the ArcGIS API for JavaScript, so please bear with me!
My web app is in Angular 13, and uses version 4.23.7 of the API. I'm using ES modules.
The map works fine in our local development environments, and in our deployed Test environment. It does not display the basemap (or our graphic layer) in our Staging and Production environments. The difference is that Staging and Production are bundled/minimized, while the local development and Testing environments are not.
The error message I'm getting is
main.js:118 [esri.layers.VectorTileLayer] #load() Failed to load layer (title: 'Light Gray Canvas Labels', id: '18105e27efe-layer-2')
There is an inner exception here:
TypeError: w is not a function or its return value is not iterable at X (https://xxxx.xx.xxx/5460.js:1:307) at ae._initializeTilemapDefinition
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. But no tiles.
Thanks for reading this post, and any ideas you have. Very excited to be part of this community!
Aaron