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
“DatePicker.RangePicker”不能用作 JSX 组件。 其实例类型 "Component<RangePickerProps, any, any>" 不是有效的 JSX 元素。 #781
Comments
react 是什么版本 |
v16.9.0 |
我也遇到这种情况,请问解决了吗? |
@luyuanky @simsir-lin 方便提供下生成出来的完整项目代码吗?可以上传到一个github repo里,然后贴个链接~ |
react的类型错误。facebook/react#24304 (comment) |
可以自查一下是不是有多版本的@types/react |
|
临时的办法: |
一般是这个原因导致的,可参考解决方案 |
基本信息
预期结果
不报错
复现步骤
使用arco-design pro 创建项目
无任何代码修改,正常启动
示例代码 <DatePicker.RangePicker /> 出现ts报错
The text was updated successfully, but these errors were encountered: