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.

@types/react-native@0.63.41 or newer causes "No overload matches this call."

See original GitHub issue

Current behaviour

Run yarn add @types/react-native --dev to install latest version.

After that, VSCode reports “no overload matches this call” with React Native Paper components.

On version 0.63.41 commit, they remove accessibilityTraits and accessibilityComponentType.

Expected behaviour

No error when install @types/react-native latest version.

Code sample

Screenshots (if applicable)

image

What have you tried

I installed old version (yarn add @types/react-native@0.63.40 --dev), no errors was showed.

Your Environment

software version
ios or android android 10
react-native 0.63.4
react-native-paper 4.5.0
node 14.15.2
npm or yarn yarn@1.22.5
expo sdk none

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:22
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

20reactions
Kautocommented, Dec 17, 2020

can confirm. There are type errors everywhere with @types/react-native@0.63.42 (“properties accessibilityTraits and accessibilityComponentType are missing”). Anyway yarn add @types/react-native@0.63.40 --dev fixed it for me too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No overload matches this call. Typescript and ... - Stack Overflow
Here is typescript's mess of an error message. No overload matches this call. Overload 1 of 2, '(props: Pick<Pick<Pick<DetailedHTMLProps< ...
Read more >
No overload matches this call with styled components ...
No overload matches this call in TypeScript is really annoying and there aren't too many solutions around there, though we have a solution!...
Read more >
Resolving React Native Paper 'No overload matches this call ...
I like to keep a terminal window open with the TypeScript compiler running in watch mode (with a "tsc": "tsc" npm script, this...
Read more >
"No overload matches this call" - Airtable Community
Updated all fields so it's single line text and all inputs are strings. New error is: Argument of type '{ Client: { id:...
Read more >
Getting errors while implementing Find Places in the application
No overload matches this call. const select = document.createElement('select', '');. Argument of type '{ location: any; categories: string[]; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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