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