undefined is not an object (evaluating n.reactCurrentOwner
See original GitHub issueAfter adding all my necessary npm packages on my app and try to run, I’m en counteracting this bug. I have tried the following and still same bug
watchman watch-del-all
rm -rf ./node_modules
yarn cache clean
rm -rf $TMPDIR/react-*
yarn install
npm start -- --reset-cache
I’ve also tried to update everything to latest version and still same bug. i.e
react-native: 0.45
react: 16.0.0-alpha.12
Anybody else with similar issue?
Environment
react-native-cli: 1.0.0
react-native: 0.44.0
react: 16.0.0-alpha.6
node: v6.10.0
npm: 4.5.0
yarn: 0.27.5
Platform: Android OS: Windows Android Studio
Steps to Reproduce
react-native run-android
Expected Behavior
It’s supposed to show app main page
parsing template literals
Actual Behavior red error page with undefined is not an object (evaluating n.reactCurrentOwner
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:10
Top Results From Across the Web
reactjs - undefined is not an object (evaluating 'ReactInternals ...
P.S: when I try to update my react-native-router-flux, I get this error from npm: npm ERR! code ENOGIT npm ERR! No git binary...
Read more >[React Native] TypeError: undefined is not an object ...
Can you help me with this error? I am getting this error while trying to call sb.connect() TypeError: undefined is not an object...
Read more >ERROR TypeError: undefined is not an object (evaluating ...
Ever encountered this error → ERROR TypeError: undefined is not an object (evaluating '_this.props.navigation.navigate') whilst working hard on your project?
Read more >React-Native踩过的那些坑 - CSDN博客
问题1:undefined is not an object (evaluating 'ReactInternals.ReactCurrentOwner') 待续.. 问题2:No dimension set for key window.
Read more >LWC - TypeError: undefined is not an object (evaluating 'e ...
EDIT. There is actually another issue here, and it's a bit sneaky. When you write to this.value you are assigning that value an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m stuck on this issue too, I’m currently using those versions:
I’m experiencing a similar issue issue when trying to add react-native-web to an existing react-native project:
Cannot read property 'ReactCurrentOwner' of undefined
. react-native-web currently requires react v15.4.x which is a different version than the one installed with the current version of react-native. To fix the issue I had to downgradereact-native
to0.42.3
(which uses react ~15.4.0 as a peer dependency) and setreact
,react-dom
, andreact-test-renderer
to15.4.1
.tl;dr make sure the versions of react in your dependencies are matching.