upgrade-support icon indicating copy to clipboard operation
upgrade-support copied to clipboard

TypeError: undefined is not an object (evaluating '_reactNative.TouchableHighlight.propTypes.style'

Open vikil143 opened this issue 3 years ago • 3 comments

Environment

System: OS: Linux 5.4 Ubuntu 18.04.3 LTS (Bionic Beaver) CPU: (4) x64 Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz Memory: 1.96 GB / 15.47 GB Shell: 4.4.20 - /bin/bash Binaries: Node: 13.10.1 - ~/.nvm/versions/node/v13.10.1/bin/node Yarn: Not Found npm: 6.14.5 - ~/.nvm/versions/node/v13.10.1/bin/npm Watchman: Not Found SDKs: Android SDK: Not Found IDEs: Android Studio: Not Found Languages: Java: 1.8.0_265 - /usr/bin/javac Python: 2.7.17 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.2 => 0.63.2 npmGlobalPackages: react-native: Not Found

Upgrading version

Previous version "react": "16.9.0", "react-native": "0.61.5"

new version "react": "16.13.1", "react-native": "0.63.2"

Description

I m upgrade my app I follow steps from this site https://react-native-community.github.io/upgrade-helper/?from=0.61.5&to=0.63.2 to upgrade my app this error coming from another package(react-native-material-menu) that has getting error of above error undefined has not an object please help me. Or help me to tackle this solution

Basically error getting from node_modules folder what should I do should I move it or get any solution for it

vikil143 avatar Aug 08 '20 11:08 vikil143

Any help, please

vikil143 avatar Aug 10 '20 05:08 vikil143

Anyone, please help I updated my comment

vikil143 avatar Aug 11 '20 05:08 vikil143

I was having the same issue. RN v0.62 changelog shows TouchableHighlight.propTypes was removed.

I'm using react-native-material-menu, and an older version used TouchableHighlight.propTypes. I installed >= v1.1.2 for compatibility with RN v0.62.

(If you are not using react-native-material-menu or updating does not fix this, other packages may not be updated for v0.62)

pdpino avatar Aug 22 '20 02:08 pdpino