-
Notifications
You must be signed in to change notification settings - Fork 589
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
Error using @ant-design/icons with TypeScript #354
Comments
Same on me
|
@chenshuai2144 @afc163 could you guys help me on this issue? have been struggling for weeks. I installed @types/[email protected] and @types/[email protected] but doesn't work. |
@linonetwo After weeks of research, I finally noticed that @types/react and @types/react-dom are listed under devDependencies in package.json by default, but in my project they were moved under dependencies somehow. Hope this is helpful for solving your issue as well. |
@lfpkkk it doesn't work as followed your steps. I just use the icon with default props, but it warned. is there any other ways to fix? |
Same issue. Any update on this? |
same here |
It may have something to do with the versions of @types/react and @types/react-dom. It works for me with @types/[email protected] and @types/[email protected] |
Doesn't work with
|
Same issue with |
Same Problem: |
<CaretRightOutlined rev={""} rotate={isActive ? 90 : 0} />}> add rev property it will fix |
Upgrade types version works for me |
I have already upgrade versions but still get error Check out my comment for details; screenshots |
I was getting same error:
and the solution from @sohail-amini worked for me! |
Lately I have problem using icons with @ant-design/icons. It seems like this issue has been there for a while, but only a few people have encountered it.
I tried the solution @lukasluecke suggested in #304, which is to install @types/react and @types/react-dom directly to the project. But it does work for my situation. Any other suggestion on solving
package.json
The text was updated successfully, but these errors were encountered: