We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
用官网这个demohttps://graphin.antv.vision/graphin/layout/leaf-cluster/,在本地运行时js会报错,demo的代码什么也没有改。 报错信息是: Uncaught TypeError: Cannot set properties of null (setting 'width') at AbstractGraph2.set (graph.js:293:19)
https://github.com/cuidingfeng/transaction-analysis/blob/main/src/pages/Home/charts.tsx
1、yarn dev本地启动 2、本地访问:http://localhost:5173/home 3、改变窗口大小,触发resize
正常应该js不报错,并且画中的节点可以点击交互
No response
The text was updated successfully, but these errors were encountered:
@cuidingfeng 好的,我clone你的项目试试
Sorry, something went wrong.
@cuidingfeng 我测试了下,发现是 react 版本的问题,Graphin2.x 版本不支持 react 18。我在你的项目仓库中,将react版本降级为17.x 就可以正常运行
用react17,一切正常了,非常感谢
No branches or pull requests
Describe the bug
用官网这个demohttps://graphin.antv.vision/graphin/layout/leaf-cluster/,在本地运行时js会报错,demo的代码什么也没有改。
报错信息是:
Uncaught TypeError: Cannot set properties of null (setting 'width')
at AbstractGraph2.set (graph.js:293:19)
Your Example Website or App
https://github.com/cuidingfeng/transaction-analysis/blob/main/src/pages/Home/charts.tsx
Steps to Reproduce the Bug or Issue
1、yarn dev本地启动
2、本地访问:http://localhost:5173/home
3、改变窗口大小,触发resize
Expected behavior
正常应该js不报错,并且画中的节点可以点击交互
Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: