-
Notifications
You must be signed in to change notification settings - Fork 499
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
Typescript error for Icon #478
Comments
Any update on this? I'm getting the same issue. |
I had the same issue, fixed it by updating typescript to version 4.7.3 and @types/react to 17.0.43 . The type of Icon is React.ReactNode, but it is rendered as However you should not create an inline component. Instead, you can create a component in the same file as
|
@nicolaswbam that still gives me the TS error |
Passing a function or component is working in my case but why it is failing my test.
I am getting:
But if I do like bellow, the test passes but shows error. Weird part is I can run my application.
I can update |
anyone want to open a pr for this? |
It's work fine. |
can some of y'all review this mr? |
Getting
when using like so:
Any recommendations?
The text was updated successfully, but these errors were encountered: