antvis/G2

图表渲染偶现报错「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 的值进行判断。

image


可以来一个复现的案例代码吗?我来处理一下~

posted by hustcc over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests