在每个react-native项目中,我尝试构建(从启动套件到空项目)RNI18n错误。
以下任何 rht 都不起作用
- 我在控制台中没有收到任何错误。
- 我尝试过使用新的(未修改的)react-starter 存储库
- 我卸载了(然后重新安装)React Native(通过 npm)
- 我也在他们的存储库上发布了但没有答案
- 我尝试从 cmd“react-native run-ios”和 .xcodeproj 文件运行
我使用的是 OSX。非 react 应用程序工作正常。
错误:
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
我的电脑需要重新启动。这可能是当前(最新)版本(0.39)中的错误
我是一名优秀的程序员,十分优秀!