Ycon Ycon - 2 months ago 34
Node.js Question

React-native Undefined is not an object (evaluating 'RNI18n.locale')

On every react-native project I try and build (from start kits, to an empty project) the RNI18n error.

None of rht following worked


  • I get no errors in the console.

  • I have tried with a fresh (unmodified) react-starter repo

  • I uninstalled (then re-installed) react native (via npm)

  • I also posted on their repo without an answer

  • I tried running from the cmd "react-native run-ios" and from the .xcodeproj file



I am on OSX. Non-react app's work fine.

The error:

2016-09-06 21:48:56.897 [warn][tid:main][RCTEventEmitter.m:54] Sending `websocketFailed` with no listeners registered.
2016-09-06 21:48:56.991 [error][tid:com.facebook.react.JavaScript] undefined is not an object (evaluating 'RNI18n.locale')
2016-09-06 21:48:56.994 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: undefined is not an object (evaluating 'RNI18n.locale')
2016-09-06 21:48:57.008 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: The stack is null
2016-09-06 21:48:57.064 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module.
2016-09-06 21:48:57.066 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: Module AppRegistry is not a registered callable module.
2016-09-06 21:48:57.072 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: The stack is null


enter image description here

Answer Source

Reboot was required of my PC. This may be a bug in the current (latest) version (0.39)