Skip to content
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

graphs 里面的官方用例DemoConversionDagreGraph🐛[BUG] #1925

Open
xiaofeifei112 opened this issue Apr 24, 2023 · 3 comments
Open

graphs 里面的官方用例DemoConversionDagreGraph🐛[BUG] #1925

xiaofeifei112 opened this issue Apr 24, 2023 · 3 comments

Comments

@xiaofeifei112
Copy link

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

按照官方用例来使用 DemoConversionDagreGraph 前端提示错误
Cannot read properties of undefined (reading 'disconnect')
后面我查看代码
image
image
// 移除container resize监听
_this.resizeObserver.disconnect();
_this.resizeObserver 没有值 报错

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

🏞 期望结果 [描述你原本期望看到的结果]

_this.resizeObserver?.disconnect();

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

© 版本信息

  • "@ant-design/charts": "^1.4.2",
  • 浏览器环境
  • 开发环境 mac OS

🚑 其他信息 [如截图等其他信息可以贴在这里]

@lxfu1
Copy link
Member

lxfu1 commented Apr 24, 2023

npm i @ant-design/graphs@1.5.0-beta.0 -S

@lxfu1 lxfu1 closed this as completed Apr 24, 2023
@lxfu1
Copy link
Member

lxfu1 commented Apr 24, 2023

用beta版本

@xiaofeifei112
Copy link
Author

@lxfu1 这个是怎么解决的呀,为什么我下来还是不行呀,node_modules 已经重新下载了
还是老样子的错
image
依旧还是Cannot read properties of undefined (reading 'disconnect')

@lxfu1 lxfu1 reopened this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants