-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined is not an object (evaluating 'ReactInternals.ReactCurrentOwner') #13874
Comments
It doesn't seem obviously related to me, but perhaps a hint toward the underlying cause. When you run the packager with:
instead of simply You end up with a few warnings about duplicate modules:
|
Full trace (from iOS):
|
I could have sworn I updated my React peer dependency. Apparently not! That was the cause. Sorry! A note to anyone else trying to run RN from master. Double check the react version in RN's |
i have the same problem in the ios,is there anybody solved it? |
@winterrain5 As I mentioned, make sure you've installed the correct version of React. If you're using React Native 0.45:
|
i got the same problem after upgrading to 0.45 |
I'm assuming that you also need to update this too if you have it?
|
@Benjamin-Dobell Thank you ! |
i have the same question in my android project. how to fix it ? i, package.json: |
Hi "name": "RNDemo", How to fixed it ?? |
@Benjamin-Dobell It worked. Thanks. |
Hmm. I'm getting the same message with EDIT: My issue was that I did not move the ios project to an |
This is my |
Hello
|
Thanks! Resolved it! |
followed @tiofabby @saayani But, NOT WORKING. package.json configuration is as below.
|
OK. I got it resolved by doing the things below.
Problem Solved ! @tiofabby @saayani 👍 |
@tiofabby it works for me ,i used
|
解决方法:把react,react-native安装如下版本就好了 |
解决方法:把react,react-native安装如下版本就好了 |
I removed the '^' in front of "16.0.0-alpha.12" and it worked. |
Yep I added react@16.0.0-alpha.12 and it worked for me. |
react@16.0.0-alpha.12 worked for me too. thanks |
Description
The last couple of days I've been attempting to debug the current React Native master (updated the HEAD a few times) on either iOS or Android, however app execution fails immediately after receiving the bundle with the exception:
I've attempted clean app rebuilds many times:
Also, cleaned the Android builds (
./gradlew clean
) and iOS builds ("Clean" and "Clean Build Folder") and rebuilt.Reproduction Steps and Sample Code
Check out RN master.
Build the Android libs using:
Check in the resultant
android/
directory (force add as it's.gitignore
'd) and push to a Github branch.In a RN app swap from the NPM published package to the published branch e.g.
Rebuild the app
cd android; ./gradlew clean; ./gradlew installDebug
, or for iOS from XCode.Launch the RN packager:
Note: If you haven't grabbed flowtype from master this will fail here. I just temporarily replaced the spread operator usage in type definitions with copy and paste contents.
Error then occurs.
It's perhaps worth noting that, I believe, this is the exact procedure I've followed in the past to build and test (and eventually contribute back) my RN forks.
Solution
Unsure.
Additional Information
The text was updated successfully, but these errors were encountered: