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

使用 react 自定义节点报错 #3861

Closed
xuoutput opened this issue Aug 12, 2022 · 5 comments
Closed

使用 react 自定义节点报错 #3861

xuoutput opened this issue Aug 12, 2022 · 5 comments

Comments

@xuoutput
Copy link

Describe the bug

参考文档https://g6.antv.vision/zh/docs/manual/middle/elements/nodes/react-node
image

Your Example Website or App

1

Steps to Reproduce the Bug or Issue

1

Expected behavior

正常使用

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]
    "@ant-design/charts": "^1.4.2",
    "@ant-design/icons": "^4.7.0",
    "@antv/g6": "^4.6.18",
    "@antv/g6-react-node": "^1.4.5",
    "antd": "^4.22.3",
    "axios": "^0.27.2",
    "date-fns": "^2.29.1",
    "query-string": "^7.1.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^6.3.0"

Additional context

No response

@Yanyan-Wang
Copy link
Contributor

请提供在线复现 demo

@Yanyan-Wang
Copy link
Contributor

尊敬的用户,您好。我们很重视您的 issue,但由于长时间没有答复,我们暂时认为这个问题已经解决。如果还有任何问题,请随时根据 issue 模版再开启新的 issue。

@Hemomoo
Copy link

Hemomoo commented Jun 30, 2023

我出现了同样的问题,
image

我电脑是m1芯片
node 版本我也切换过
看报错信息 是这个 yoga-layout-prebuilt 的问题

在yoga-layout-prebuilt github 中 也有人提了一个这个问题 vadimdemedes/yoga-layout-prebuilt#21

但是我在codesandbox 中没有重现这个问题
我用vite 重现创建一个项目也会有同样的错误

@guguji5
Copy link

guguji5 commented Aug 9, 2023

浪费了一下午2小时时间。一直调试还是报错。整理了个最小复现集

https://github.com/n9e/fe/tree/g6-crash-with-vite

git clone git@github.com:n9e/fe.git
git checkout -b g6-crash-with-vite origin/g6-crash-with-vite
npm install
npm run dev

访问localhost:8765/g6 即可复现(记得要用 g6-crash-with-vite 分支的代码哈)

@mk48
Copy link

mk48 commented Oct 17, 2023

any update on this? I am also getting the same error.

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

5 participants