Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

undefined is not an object(ecaluating 'ReactInternals.ReactCurrentOwner')

I want to run my react-native project, but an error occurred. Please give me advise.

Environment

$ npm list --depth=0
[email protected] /Dev/lrn/rn/nav
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Project Directory

$ls
__tests__         index.android.js  node_modules      yarn.lock
android           index.ios.js      package-lock.json
app.json          ios               package.json

What I Do

$ rm -rf node_modules
$ npm cache clean --force
$ npm install
$ react-native run-ios

Error Red Screen iPhone Simulator

I think environment was wrong, but what I do cannot correct it. Thank you for seeing and any advice is welcome. thank you.

like image 620
hiroga Avatar asked Dec 18 '22 06:12

hiroga


1 Answers

I ran into the same problem, after doing some reading on their Github Issues

yarn add [email protected]

or

npm i [email protected] --save

did the trick for me.

like image 196
bxWW4djtH7wdp Avatar answered May 23 '23 06:05

bxWW4djtH7wdp