-
Notifications
You must be signed in to change notification settings - Fork 118
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
Type error with React 18 and TypeScript #258
Comments
I have the same problem |
@Egor-Koldasov did u manage to solve this issue ? any help will be appreciated ! |
I have same issue |
Same issue here |
For future readers : You can fix this lint error with a comment. ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
{ /* @ts-expect-error : ConfigProvider has no children property in interface declaration */}
<ConfigProvider colors={AVATAR_COLORS}>
<App />
</ConfigProvider>
</React.StrictMode>
) |
@renebigot that is not a "fix", that is a workaround. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample code
ConfigProvider
throws an errorSandbox example
https://codesandbox.io/s/heuristic-wing-jt95g8?file=/src/App.tsx
Example versions
The text was updated successfully, but these errors were encountered: