react-native undefined is not an object (evaluating RCCManager.setRootController)
Asked Answered
L

3

8

I'm trying to make a simple react-native app with redux and redux-saga tie-ins. Unfortunately, when I try to run the app (whether using react-native run-ios or running through Xcode, I get the following error:

error message: undefined is not an object (evaluating 'RCCManager.setRootController')

Strangely enough, when I ported things like the Counter example for redux-saga to react-native or other examples I don't have this issue. I'm wondering if someone could help point to where things could be going wrong?

Lime answered 13/6, 2016 at 19:1 Comment(0)
L
2

So turns out I just needed to link some more libraries together.

Reinstalling these components helped:

npm install --save react-native and npm install --save react-native-controllers

followed by rnpm link fixed the issue

Lime answered 14/6, 2016 at 18:29 Comment(1)
The above did't helped me!! . what else could be the problem.Gore
C
1

Here is another solution based on my own failure: Through rechecking iOS installation doc, I found out some tricky differences in the #4 requirement: enter image description here It clearly says project row instead of target row. This time I selected 'project' row and add do what the #4 instruction told to do. Then it solved the problem. Hopefully my solution will be found helpful.

enter image description here

Cribbage answered 15/5, 2018 at 14:43 Comment(0)
E
0

I faced a similar problem and it was because somehow the setup I made for the Xcode project were lost, so following the instructions I made them again and the problem was solved.

Earleenearlene answered 21/11, 2017 at 12:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.