Skip to content
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

Unable to resolve module LinkedStateMixin #4949

Closed
thachp opened this issue Dec 23, 2015 · 5 comments
Closed

Unable to resolve module LinkedStateMixin #4949

thachp opened this issue Dec 23, 2015 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@thachp
Copy link

thachp commented Dec 23, 2015

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
@facebook-github-bot
Copy link
Contributor

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.

  • If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using, as well as the platform you're on e.g.- Android, iOS. Thank you for your contributions!

@christopherdro
Copy link
Contributor

@thachp I just followed the steps and can't reproduce the errors. Did you manage to get it working?

@satya164
Copy link
Contributor

Related to #4968 . Let's track it there.

@dsibiski
Copy link
Contributor

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.

@wenkesj
Copy link

wenkesj commented May 4, 2016

@dsibiski Receiving this exact issue with react@15.0.2 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants