antvis/G2

The issue has been closed
图表渲染偶现报错「TypeError: Cannot read properties of undefined (reading 'drawShape')」 #4316
licong-site posted onGitHub
页面有多个图表,页面渲染偶现报错「TypeError: Cannot read properties of undefined (reading 'drawShape')」, 报错代码位置 https://github.com/antvis/G2/blob/4.2.3/src/geometry/element/index.ts#L239 。一般多刷新几次就不报错了。 报错统计这个error 今年已经出现 300+ 次了。 能否在 this.shapeFactory.drawShape() 调用前对 this.shapeFactory 的值进行判断。