antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

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

The-Lion-King posted onGitHub

Describe the bug / 问题描述

我使用的是react16.8版本,提示无法找到模块 <img width="479" alt="Image" src="https://github.com/user-attachments/assets/38243e0e-b40a-4086-a2b2-d792ded1d1cc" />

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 提一个 issue 就好,issue 也是可以二次编辑的。

posted by hustcc 13 days ago

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

posted by yvonneyx 10 days ago

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

posted by The-Lion-King 6 days ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests