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
Typing issues with Typescript 3 and new LibraryManagedAttributes feature #11697
Comments
I have the same issue. |
3 similar comments
I have the same issue. |
I have the same issue. |
I have the same issue. |
@BoostIO funded this issue with $30. Visit this issue on Issuehunt |
@yesmeck has started working. Visit this issue on Issuehunt |
Same issue. When will the fix get pushed to npm? |
@elie222 it should already be fixed. Requires upgrading Ant and |
With tsc 3.0.1 I was getting:
When I upgraded to antd (3.9.1), @types/react (16.4.13), and @types/react-dom (16.0.7) the problem went away. |
I don't use Ant at all, upgraded to What else can I do? Where is this error coming from? Where do I need to raise the awareness? |
For me the workaround is adding |
This isn't good workaround |
If you happen to use yarn, then add the following to your "resolutions": {
"@types/react": "^16.7.18"
}, You get the error since yarn is incorrectly resolving multiple versions of the same package instead of just using one. |
add
|
@khaziwallis This is virtually the same as my suggestion in the previous comment :) |
Possibly related to #11677
Version
3.8.0
Environment
typescript@3.0.1 @types/react@16.4.8 @types/react-dom@16.0.7
Reproduction link
https://github.com/cdeutsch/LibraryManagedAttributes-Repro/
Steps to reproduce
Try to use
<Input>
with TypeScript 3 and latest @types/react and @types/react-domWhat is expected?
No errors
What is actually happening?
Type '{}' is not assignable to type 'Pick<MergePropTypes<Readonly<{ children?: ReactNode; }> & Readonly, InferProps<{ type: any; id: any; size: any; maxLength: any; disabled: any; value: any; defaultValue: any; className: any; addonBefore: any; ... 9 more ...; suffix: any; }>>, "children" | ... 281 more ... | "autosize">'.
Property 'autosize' is missing in type '{}'.
More information here:
DefinitelyTyped/DefinitelyTyped#27805
The text was updated successfully, but these errors were encountered: