Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V5 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'onfinish') #5777

Closed
pfdgithub opened this issue Nov 9, 2023 · 1 comment

Comments

@pfdgithub
Copy link

问题描述

@antv/g2@5.1.7

有时候,似乎是动画被打断时,会报异常,不稳定复现。
直接原因是 这一行 返回的 animation 是 null ,根本原因暂不清楚。

morphing.ts:188 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'onfinish')
    at oneToOne (morphing.ts:188:5)
    at morphing.ts:262:6
    at plot.ts:1526:15
    at plot.ts:992:35
    at selection.ts:395:14
    at _Selection.each (selection.ts:372:7)
    at _Selection.transition (selection.ts:394:17)
    at plot.ts:989:16
    at _Selection.call (selection.ts:410:5)
    at plot.ts:982:18

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@pfdgithub pfdgithub changed the title Uncaught (in promise) TypeError: Cannot set properties of null (setting 'onfinish') V5 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'onfinish') Nov 9, 2023
@pearmini
Copy link
Member

pearmini commented Nov 9, 2023

提供一下最小复现 demo,比如可以在 g2 官网运行的代码片段或者 codesand box

@antvis antvis locked and limited conversation to collaborators Nov 20, 2023
@pearmini pearmini converted this issue into discussion #5814 Nov 20, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants