-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
@types/react - Invalid definition of children #49876
Comments
The part that
In Runtime semantics: https://codesandbox.io/s/reactchildrenmap-semantics-jv0pz |
@eps1lon thanks for your response. Is there any way we can easily fix it? Thanks |
We would need to update the typings. |
@eps1lon not sure if I understand... so the problem is not on |
The problem is in |
I've tried several different combinations on: DefinitelyTyped/types/react/index.d.ts Lines 2881 to 2882 in 3412ebe
but honestly I have no idea how to fix it in the correct way... 😕 |
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the |
Is something wrong with CI or publishing infrastructure?
If you know how to fix the issue, make a pull request instead.
@types/react
package and had problems.@types
package versions do not follow SemVer.Definitions by:
inindex.d.ts
) so they can respond.The original issue report is here: mui/material-ui#23792
I've been told there that the issue is not with TypeScript nor Material-UI but the problem is in
@types/react
that's why I am creating that issue. To be completely honest I did not even suspect that and I have no idea how to fix it. I just know that my code does not work when I try latest stable TypeScript (4.1.2).Errors I am getting are as follows:
The text was updated successfully, but these errors were encountered: