React-native: TypeError undefined is not an object (evaluating 'nativeVersion.major')

Created on 23 Nov 2017  Â·  11Comments  Â·  Source: facebook/react-native

Is this a bug report?

YES
image

i want rn 0.49, but error with this, why?
image

Have you read the Contributing Guidelines?

YES

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 6.10.3
Yarn: 0.21.3
npm: 5.5.1
Watchman: 4.7.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.3934792

Packages: (wanted => installed)
react: ^16.1.1 => 16.1.1
react-native: 0.49.0 => 0.49.0

Ran Commands Locked

Most helpful comment

You’d get this error if you’re not running the same version of JS as the native code. I’d recommend deleting node modules, clearing derived data, resetting simulator, basically clear all the caches, make sure you have the same version of TN everywhere, then rebuild since this isn’t a bug with RN.

All 11 comments

You’d get this error if you’re not running the same version of JS as the native code. I’d recommend deleting node modules, clearing derived data, resetting simulator, basically clear all the caches, make sure you have the same version of TN everywhere, then rebuild since this isn’t a bug with RN.

thank you, clean and run, is ok,

I had to run watchman watch-del-all && react-native start --reset-cache and use the versions documented at https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md Issue should be closed.

Having the same problem here.

"react": "16.0.0",
"react-native": "0.50.1",

Tried killing and restarting the packager,npm install.
Also run watchman watch-del-all && react-native start --reset-cache
But the error is still there

Is there a solution? I am getting the error:

TypeError undefined is not an object evaluating _reactNative.nativeModules.UIManager.RCTVideo.Constants)

I am getting the error:
screen shot 2018-01-22 at 4 23 15 pm

Facing similar issue when upgrading my version

@wanghuajian620 They just moved out the PropTypes from React core. You have to require separate package to use it, https://www.npmjs.com/package/prop-types

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to Contribute • What to Expect from Maintainers

i am getting error
185795

do try building, react-native run-android /ios and check for any errors and then restart package manager. It solved the error for me. I got errors when I have run react-native run-android

Was this page helpful?
0 / 5 - 0 ratings