question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined is not an object (evaluating n.reactCurrentOwner

See original GitHub issue

After 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

1reaction
DevHossamHassancommented, Jul 8, 2017

I’m stuck on this issue too, I’m currently using those versions:

react: 16.0.0-alpha.12
react-native: 0.45.1
npm: 5.0.3
node: v8.1.3
yarn: v0.24.6
0reactions
L1fescapecommented, Jul 27, 2017

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 downgrade react-native to 0.42.3 (which uses react ~15.4.0 as a peer dependency) and set react, react-dom, and react-test-renderer to 15.4.1.

tl;dr make sure the versions of react in your dependencies are matching.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found