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

@ant-design/[email protected] 使用图标时提示报错 #483

Closed
six006 opened this issue Jun 4, 2021 · 6 comments
Closed

@ant-design/[email protected] 使用图标时提示报错 #483

six006 opened this issue Jun 4, 2021 · 6 comments

Comments

@six006
Copy link

six006 commented Jun 4, 2021

在使用图标时,

import { MenuUnfoldOutlined } from '@ant-design/icons';<MenuUnfoldOutlined />

报下面的错误,换成4.0.0就没有问题了,怎么解决呢?

Type '{}' is missing the following properties from type 'Pick<AntdIconProps, "name" | "className" | "style" | "cite" | "data" | "form" | "label" | "slot" | "span" | "summary" | "title" | "pattern" | "children" | "id" | "size" | ... 347 more ... | "twoToneColor">': name, className, style, cite, and 356 more. TS2740

@afc163
Copy link
Member

afc163 commented Jun 18, 2021

升级 @types/react 和 TS 版本。

@afc163 afc163 closed this as completed Jun 18, 2021
@eminoda
Copy link

eminoda commented Dec 5, 2022

4.3.0 可以试试

@whinc
Copy link

whinc commented Aug 25, 2023

@types/[email protected] 升级到 @types/[email protected] 后,问题解决

@dizefurkan
Copy link

升级 @types/react 和 TS 版本。

I have already upgrade @types/react version but error is still there
Screenshot 2023-10-25 at 14 28 22
Screenshot 2023-10-25 at 14 28 37
Screenshot 2023-10-25 at 14 29 16

@Yung-Sun
Copy link

升级 @types/react 和 TS 版本。

I have already upgrade @types/react version but error is still there Screenshot 2023-10-25 at 14 28 22 Screenshot 2023-10-25 at 14 28 37 Screenshot 2023-10-25 at 14 29 16

@dizefurkan You can try downgrading to version 4.3.0 [@ant-design/[email protected]]. It works for me :)

@cwy007
Copy link

cwy007 commented Aug 22, 2024

-    "@ant-design/icons": "4.8.1"
+    "@ant-design/icons": "4.8.2"

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

No branches or pull requests

7 participants