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

V5 @antv/g6-extension-react is not compatible with versions below React 18 and above 16 #6273

Closed
minjie946 opened this issue Sep 4, 2024 · 1 comment

Comments

@minjie946
Copy link

Describe the bug / 问题描述

  • 自定义节点的时候,用React 的形式使用,但是在注册时候提示 Cannot find module 'react-dom/client'
    image

Reproduction link / 重现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response

@github-actions github-actions bot changed the title V5 @antv/g6-extension-react 不兼容 React 18以下 16以上的版本 V5 @antv/g6-extension-react is not compatible with versions below React 18 and above 16 Sep 4, 2024
@Aarebecca
Copy link
Contributor

该扩展使用了 react 18 提供的 createRoot API,因此在更低版本 React 下不兼容。

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