图表渲染偶现报错「TypeError: Cannot read properties of undefined (reading 'drawShape')」 #4988
Replies: 1 comment
-
可以来一个复现的案例代码吗?我来处理一下~ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
页面有多个图表,页面渲染偶现报错「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 的值进行判断。
Beta Was this translation helpful? Give feedback.
All reactions