when to add a graphic to graphicslayer,console prints the errors"Accessor#set Assigning an instance of 'esri.Graphic' which is not a subclass of 'esri.Graphic'",what's the problem?
arcgis api for js version is 4.18.0
It's hard to figure out with so little information. The best would be for you to add a reproduction in a codepen as https://codepen.io/vicb-the-lessful/pen/wvzLEBa?editors=100
Maybe
var GraphicsLayer = GraphicsLayer.createSubclass({
declaredClass:"egova.layers.GraphicsLayer",
looks fishy: try to change the variable name to something different than the base class, i.e. `ExtendedGraphicsLayer` ?
https://codepen.io/xstrivefor/pen/YzGommX
the error doesn't repeat in codepen,but the same code will print the error every time when to use method addGraphic in local enviroment
The problem hasn't been solved.Maybe the inheritance has a problem in strict mode.Is there anynone has a solution?