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

bug: 开发环境下点击展开代码按钮报错 #2219

Closed
CaptainJon opened this issue Oct 25, 2024 · 1 comment
Closed

bug: 开发环境下点击展开代码按钮报错 #2219

CaptainJon opened this issue Oct 25, 2024 · 1 comment

Comments

@CaptainJon
Copy link

CaptainJon commented Oct 25, 2024

Version

2.4.13

OS Version

Windows 11 latest

Node.js Version

16.20.2

Browser Version

Google latest

Link to minimal reproduction

no

Steps to reproduce

  1. 点击展开代码
    image

  2. 点击后控制台报错,页面白屏

image

What is expected?

能顺利展开代码

What is actually happening?

如题,这个错误很模糊,似乎又和引入antd的Modal有关系,我找到了类似的issue ,现在我的Modal封装也不能正常在页面展示,但是实在搞不懂为什么点击展开代码也会导致同样的报错。

我一直使用的react 17版本,中途下载过rc-util这个库,好像就出现了这个问题,我只能说好像,之前那个issue中有人说是因为react 18导致的问题,但无人确认,rc-util我已经删除了,移除了相关代码和依赖,问题依旧。

Any additional comments? (optional)

No response

@Jinbao1001
Copy link
Member

Jinbao1001 commented Oct 29, 2024

从提供信息来看这是react 以及 react-dom 版本带来的问题.

请检查本地react & react-dom依赖是否存在多例, 确保 18.2.0+.

很抱歉 dumi 无法解决此类问题.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@Jinbao1001 @CaptainJon and others