Hi,
I'm getting an error when adding a graphiclayer to the map with view.map.add(graphiclayer). When I use view.map.addMany([graphiclayer]) the error doesn't show up.
The console error is:
[esri.support.LayersMixin] #add() The item being added is not a Layer or a Promise that resolves to a Layer.
const gl = new GraphicsLayer()
view.map.add(gl); ===> error
Is this a bug or is it me doing something wrong?