Select to view content in your preferred language

ArcGIS components breaking across webpack vs esbuild builds in angular 20+

298
1
3 weeks ago
VitoEsposito
New Contributor

I've found out a peculiar behaviour on the ```arcgis-elevation-profile```:

When drawing lines on the map, the elevation graph can fail to render or intermittently disappear in angular projects of version 20+ (where the esbuild is set as default builder), causing inconsistent into the build that is resolved configurating a webpack build confiuration

I've reproduced the behaviour here: bitoesposito/arcgis-angular-bundling-issue

0 Kudos
1 Reply
MatteoRizzi1
Esri Contributor

Thanks @VitoEsposito for taking the time to investigate and provide a repro app.

We were able to reproduce the behavior you described. After further investigation, we found that this issue is caused by a limitation in Angular 20.x and does not reproduce in Angular 21.1.2 and later. As a result, the behavior appears to be related to the Angular version/configuration used in the sample app rather than the ArcGIS Maps SDK itself.

Our recommendation is to upgrade to Angular 21.1.2 (or a later stable version), which resolves the issue.

Please let us know if you continue to experience the problem after upgrading and we can take another look.

0 Kudos