You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @btnkr. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.
Reproduction link
Steps to reproduce
ts中引入DatePicker,使用DatePicker
What is expected?
不报错 正常使用
What is actually happening?
“DatePicker”不能用作 JSX 组件。
其实例类型 "Component<PickerProps & { status?: "" | "warning" | "error" | undefined; }, unknown, any> & CommonPickerMethods" 不是有效的 JSX 元素。
在这些类型中,"render()" 返回的类型不兼容。
不能将类型“React.ReactNode”分配给类型“import("/Users/******/node_modules/@types/hoist-non-react-statics/node_modules/@types/react/index").ReactNode”。
不能将类型“{}”分配给类型“ReactNode”。ts(2786)
The text was updated successfully, but these errors were encountered: