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

是否会继续支持 React@19 in Vue?目前升级到React@19后,Veaury会报错 #154

Open
baijunjie opened this issue Dec 7, 2024 · 3 comments
Assignees

Comments

@baijunjie
Copy link

baijunjie commented Dec 7, 2024

似乎是 react-dom@19 中移除了 createRoot 方法
image

@devilwjp
Copy link
Collaborator

devilwjp commented Dec 8, 2024

@baijunjie 一定会支持

@devilwjp devilwjp self-assigned this Dec 8, 2024
@devilwjp devilwjp added the bug Something isn't working label Dec 8, 2024
@devilwjp
Copy link
Collaborator

devilwjp commented Dec 8, 2024

@baijunjie 不是react19中移除了createRoot方法,而是react19不再支持可以动态判断react版本来选择使用ReactDOM.render还是client.createRoot (react-dom/client),会有两个方案,一个是开放一个运行时配置传入createRoot,另一个是直接提供两个版本的依赖,由使用者选择使用哪个依赖

@devilwjp
Copy link
Collaborator

devilwjp commented Dec 9, 2024

@baijunjie 2.6.0已经发布

参考说明
https://github.com/gloriasoft/veaury?tab=readme-ov-file#react-in-vue---basic-usage

@devilwjp devilwjp added react@19 in vue and removed bug Something isn't working labels Dec 9, 2024
@devilwjp devilwjp pinned this issue Dec 11, 2024
@devilwjp devilwjp unpinned this issue Dec 11, 2024
@devilwjp devilwjp pinned this issue Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants