damiaozi 发表于 2017-6-19 08:28:01

undefined is not an object evaluating ReactInternals.ReactCurrentOwner

本帖最后由 damiaozi 于 2017-6-19 08:29 编辑

react-native run-android 如下报错undefined is not an object evaluating ReactInternals.ReactCurrentOwner

如下图:预计原因是RN版本的问题参考:https://github.com/facebook/react-native/issues/13874解决办法As I mentioned, make sure you've installed the correct version of React. If you're using React Native 0.45:yarn add react@16.0.0-alpha.12【参考了解决办法,还是没解决问题,不知道现在要怎么办了。出现这个问题是什么原因?要怎么解决?】以下是我的package.jason文件。

Mr.长颈鹿 发表于 2017-10-24 09:29:41

yarn remove babel-preset-react-native
yarn add babel-preset-react-native@2.1.0
npm install

610880568 发表于 2017-12-15 14:16:46

回复回复回复回复
页: [1]
查看完整版本: undefined is not an object evaluating ReactInternals.ReactCurrentOwner