-
Notifications
You must be signed in to change notification settings - Fork 144
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
“KeepAlive”不能用作 JSX 组件。 #298
Comments
这是和react18的类型存在不兼容问题,目前还没看如何修复,可以尝试的方法是降级react到17
…---原始邮件---
发件人: ***@***.***>
发送时间: 2023年11月20日(周一) 下午4:10
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [CJY0208/react-activation] “KeepAlive”不能用作 JSX 组件。 (Issue #298)
“KeepAlive”不能用作 JSX 组件。
其实例类型 "KeepAlive" 不是有效的 JSX 元素。
在这些类型中,"render()" 返回的类型不兼容。
***@***.***/react/ts5.0/index").ReactNode”。
请问有没有知道怎么解决的?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
react17版本还是会有这个问题呀。用的antd-pro V5 umi3的版本 |
楼主有解决这个问题吗 |
umi3.5 同样的问题,这不是有 ts 声明的么,难不成还要再来个@types/xxx? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
“KeepAlive”不能用作 JSX 组件。
其实例类型 "KeepAlive" 不是有效的 JSX 元素。
在这些类型中,"render()" 返回的类型不兼容。
不能将类型“React.ReactNode”分配给类型“import("D:/\u9879\u76EE/room-reservation-frontend/node_modules/umi/node_modules/@types/react/ts5.0/index").ReactNode”。
请问有没有知道怎么解决的?
The text was updated successfully, but these errors were encountered: