-
Notifications
You must be signed in to change notification settings - Fork 4k
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 check with @types/react 18 failing #4352
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Can confirm, currently seeing it with any component that has child elements after upgrading to react types 18. |
It looks like semantic-ui-react does not support React 18.x yet. The package.json specifies |
* fixes #4352 * - remove @types/react from resolutions - add an assertion to "test/typings" Co-authored-by: Oleksandr Fediashov <olfedias@microsoft.com>
The fix was released in |
Bug Report
Steps
Just install @types/react, @types/react-dom v18 and typescript and update react and react-dom to v18 in any project using semantic-ui-react
Expected Result
No error
Actual Result
Type checking throws this errors:
The same error happens with Segment, Grid, List and Image
Version
2.1.2
Testcase
[Fork, update, and replace this pen to show the bug]:
Sandbox example
I think this error is happening because many elements extend from the type
![image](https://user-images.githubusercontent.com/49354825/162586994-dc429f88-2c5c-456a-ae0e-fa0bbaeca6e8.png)
StatelessComponent
.This has breen deprecated.
The text was updated successfully, but these errors were encountered: