I reported this issue few days ago. I resolved by referencing V4.19 of the API. However, found that V4.19 of API causes the Sketch/Circle tool to add duplicate points in the polygon array which cause an external data API call to error with duplicate points. V4.20/4.21 works fine in that respect, and it's more important that the sketch/circle tool work correctly. So, I'm back to trying to figure out this problem. Is there any solution to this? I attached error log.
Error occurs when I try to apply layer edits, code below:
//graphics is array of graphic points
const deleteEdits = {
deleteFeatures: graphics
};
layer
.applyEdits(deleteEdits)
.then((results) => { ... do some stuff ...}
4.21 is not 100% stable, it's the "next" release of the API. If you can provide a repro case, we can take a look if you make an issue here https://github.com/Esri/feedback-js-api-next