question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typing issues with Typescript 3 and new LibraryManagedAttributes feature

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

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-dom

What is expected?

No errors

What is actually happening?

Type ‘{}’ is not assignable to type ‘Pick<MergePropTypes<Readonly<{ children?: ReactNode; }> & Readonly<InputProps>, 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: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/27805

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:11
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

29reactions
Spenhouetcommented, Sep 19, 2018

For me the workaround is adding "skipLibCheck": true to tsconfig.json.

https://stackoverflow.com/a/52404148/2230045

5reactions
Beralivcommented, Dec 5, 2018

For me the workaround is adding "skipLibCheck": true to tsconfig.json.

https://stackoverflow.com/a/52404148/2230045

This isn’t good workaround Better not use Typescript then

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typing issues with Typescript 3 and new ... - Issuehunt
With tsc 3.0.1 I was getting: Property 'autosize' is missing in type for Input Property 'combobox' is missing in type for Select Property...
Read more >
Documentation - TypeScript 3.0
TypeScript 3.0 introduces a new concept of project references. ... With these features it becomes possible to strongly type a number of higher-order ......
Read more >
TypeScript error: Duplicate identifier 'LibraryManagedAttributes'
You may find that the duplicates are located in node_modules/@types/react and node_modules/types/react-dom/@types/react or a similar set-up, ...
Read more >
Announcing TypeScript 3.0 - Microsoft Developer Blogs
That's why TypeScript 3.0, the language supports a new type alias in the JSX namespace called LibraryManagedAttributes . Despite the long name, ...
Read more >
New Features in TypeScript You Didn't Know Exist
The TypeScript compiler reads in TypeScript code, which has things like type declarations and type-annotations and emits a clean and readable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found