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.

Typescript error in version 4.10.0

See original GitHub issue

I use this react-native-paper@^4.10.0 with typescript but got some typing errors

image

package.json

{
  "name": "expo-app-",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web",
    "start": "react-native start"
  },
  "dependencies": {
    "expo": "~43.0.0",
    "expo-splash-screen": "~0.13.3",
    "expo-status-bar": "~1.1.0",
    "expo-updates": "~0.10.5",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.2",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-paper": "^4.10.0",
    "react-native-reanimated": "~2.2.0",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.8.0",
    "react-native-web": "0.17.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@types/react": "~17.0.1",
    "@types/react-native": "~0.64.2",
    "typescript": "^4.4.4"
  },
  "private": true
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:11
  • Comments:35 (9 by maintainers)

github_iconTop GitHub Comments

10reactions
raajnadarcommented, May 8, 2022

Add this in package.json

"resolutions": {
	"@types/react": "<version-of-react>"
},
8reactions
lukewalczakcommented, Nov 17, 2021

I think using paper v4.10.1 with types 0.66.x solves the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the correct version of the TypeScript compiler to use ...
1.) I upgraded my application's package.json to the Babylon '4.10.0' version using the TypeScript 3.4.5 compiler and did not encounter any ...
Read more >
Gatsby 4 upgrade - typescript errors? Not using typescript
I'm getting these build errors and I don't know where to start! I'm not using gatsby-plugin-typescript. Thanks!
Read more >
Documentation - TypeScript 3.9
TypeScript 3.9 Release Notes. ... of an upgrade between two different versions of TypeScript, and a line of code errors in one version...
Read more >
Change Log - Ant Design
0. Release Schedule. Weekly release: patch version at the end of every week for routine bugfix (anytime for urgent bugfix).
Read more >
Issues compiling typescript project with Typescript 4, React
However, I run into the following error web running a webpack build/serve. The precise dependency versions are as follows (listing just the ...
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