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

Cannot read properties of undefined (reading 'ReactCurrentOwner') #1886

Open
lvisei opened this issue Dec 30, 2024 · 2 comments
Open

Cannot read properties of undefined (reading 'ReactCurrentOwner') #1886

lvisei opened this issue Dec 30, 2024 · 2 comments
Labels

Comments

@lvisei
Copy link
Member

lvisei commented Dec 30, 2024

image

G-React 不支持 React 19,问题原因:G-React 依赖了 react-reconciler @0.26.x

@lvisei lvisei added the bug label Dec 30, 2024
Copy link

您提到的问题是关于 G-React 不支持 React 19,原因是 G-React 依赖了 react-reconciler 版本 @0.26.x。这个问题导致了在使用 React 19 时出现 "Cannot read properties of undefined (reading 'ReactCurrentOwner')" 的错误。

这是因为 React 19 可能对内部 API 进行了更改,而 G-React 依赖的 react-reconciler 版本不兼容这些更改。

解决这个问题的一个方法是更新 G-React 以支持 React 19,或者在使用 G-React 时继续使用与其兼容的 React 版本。

如果您有进一步的疑问或需要帮助,请随时告诉我。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@YumoImer
Copy link

期待 G-React 能够尽快支持 React 19~

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

No branches or pull requests

2 participants