I recently upgraded my application from version 4.17 to 4.18 and came to realize that the LayerList widget still works but throws now the following error: "view: no layerview has been found for the layer"
I tried to reproduce this error using the sample from ESRI https://developers.arcgis.com/javascript/latest/sample-code/widgets-layerlist/ and replace the map layers with my own layers: there was no error
Then I recreated a sample app with angular and I was able to reproduce this error again. This error seems to happen in an Angular project using esri-loader and @types/arcgis-js-api
I ended up reverting back my application to version 4.17
it turns out the issue is on the esri-loader v3.0.0. I ended up reinstalling js API
Are you able to share a stackblitz example? I'm not able to reproduce this with esri-loader 3.0.0 and Angular 11: https://stackblitz.com/edit/angular11-arcgis-layerlist?file=src/app/esri-map/esri-map.component.ts.
[Edited] P.S. forgot to add that my example StackBlitz is working with "@types/arcgis-js-api": "^4.18.0"
https://angular-ivy-zharup.stackblitz.io
Hi Andy, thank you for the quick response. Above is the stackblitz sample that reproduces the error: Angular 11, "@types/arcgis-js-api": "^4.18.0" and "esri-loader": "^3.0.0"
Thanks Richard. Those errors might be related to another issue we are working on. I'll make a note to take another look at this once we have a new /next build to test with a potential fix.