G6 icon indicating copy to clipboard operation
G6 copied to clipboard

[Bug]: @antv/g6-extension-react 0.2.1 版本 提示无法找到react-dom/client

Open The-Lion-King opened this issue 1 year ago • 3 comments

Describe the bug / 问题描述

我使用的是react16.8版本,提示无法找到模块 Image

Reproduction link / 复现链接

No response

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

No response

Version / 版本

Please select / 请选择

OS / 操作系统

  • [ ] macOS
  • [ ] Windows
  • [ ] Linux
  • [ ] Others / 其他

Browser / 浏览器

  • [ ] Chrome
  • [ ] Edge
  • [ ] Firefox
  • [ ] Safari (Limited support / 有限支持)
  • [ ] IE (Nonsupport / 不支持)
  • [ ] Others / 其他

The-Lion-King avatar Apr 14 '25 03:04 The-Lion-King

@The-Lion-King 提一个 issue 就好,issue 也是可以二次编辑的。

hustcc avatar Apr 14 '25 03:04 hustcc

感谢您反馈这个问题。由于我们目前的代码中包含了 react-dom/client 的引用,而这个模块是在 React 18 中引入的,因此在 React 16 环境下会导致错误。是否有意向提个 PR 修复呢?

yvonneyx avatar Apr 16 '25 10:04 yvonneyx

你们吧react dom版本更新到 19,他把兼容的方法都删了,这个没办法, 除非你们手动兼容18以下的

The-Lion-King avatar Apr 21 '25 06:04 The-Lion-King