-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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节点报错 #4697
Comments
我也遇到了这问题,您解决了吗 |
浪费了一下午2小时时间。一直调试还是报错。整理了个最小复现集 https://github.com/n9e/fe/tree/g6-crash-with-vite
访问localhost:8765/g6 即可复现(记得要用 g6-crash-with-vite 分支的代码哈) |
临时性解法:
_a前面加个 |
👍patch可以,但是感觉要放弃antv了🤣 |
可以发一下你那边patch 如何写的吗 |
只需要加上 |
|
Describe the bug
3 node 版本我也切换过
看报错信息 是这个 yoga-layout-prebuilt 的问题
在yoga-layout-prebuilt github 中 也有人提了一个这个问题 vadimdemedes/yoga-layout-prebuilt#21
但是我在codesandbox 中没有重现这个问题
我用vite 重现创建一个项目也会有同样的错误
Your Example Website or App
无
Steps to Reproduce the Bug or Issue
Expected behavior
可以正常运行
Screenshots or Videos
Platform
"dependencies": {
"@antv/g6-react-node": "^1.4.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.38.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"vite": "^4.3.9"
}
Additional context
No response
The text was updated successfully, but these errors were encountered: