I could not launch sample app in simulator.
Repro(s)
$ npm install -g react-native-cli
$ react-native init app
$ cd AwesomeProject
Open ios/app.xcodeproj and hit run in Xcode.
// get the following errors
2015-12-23 11:40:01.358 [error][tid:main] Unable to resolve module LinkedStateMixin from /Users/thachp/Code/mobile/node_modules/react-native/Libraries/react-native/react-native.js: Invalid directory /Users/node_modules/LinkedStateMixin
2015-12-23 11:40:35.101 [error][tid:main] Unable to resolve module LinkedStateMixin from /Users/thachp/Code/mobile/node_modules/react-native/Libraries/react-native/react-native.js: Invalid directory /Users/node_modules/LinkedStateMixin
2015-12-23 11:40:36.058 [error][tid:main] Unable to resolve module LinkedStateMixin from /Users/thachp/Code/mobile/node_modules/react-native/Libraries/react-native/react-native.js: Invalid directory /Users/node_modules/LinkedStateMixin
Hey thachp, thanks for reporting this issue!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
react-native or for more real time interactions, ask on Discord in the #react-native channel.@thachp I just followed the steps and can't reproduce the errors. Did you manage to get it working?
Related to #4968 . Let's track it there.
The main reason for this error (right now) has to do with the fact that RN 0.21+ now has React as a peer dependency. You now need to install React as a dependency of your project, so npm install react --save is what solves this specific issue.
@dsibiski Receiving this exact issue with [email protected] I had installed. I believe this is a inconsistency issue with R and RN.
It looks like this is where 15._._* branches from 0.1_._* according to a specific comment at Reacts recent releases
LinkedStateMixin and valueLink are now deprecated due to very low popularity. If you need this, you can use a wrapper component that implements the same behavior
I installed react@^0.14.2 and the issue was resolved.
Most helpful comment
The main reason for this error (right now) has to do with the fact that RN 0.21+ now has React as a peer dependency. You now need to install React as a dependency of your project, so
npm install react --saveis what solves this specific issue.