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 build in IOS xCode #32

Closed
thachp opened this issue Dec 29, 2015 · 10 comments
Closed

Unable to build in IOS xCode #32

thachp opened this issue Dec 29, 2015 · 10 comments

Comments

@thachp
Copy link

thachp commented Dec 29, 2015

I am unable to build snowflake. I am getting the following error.

screen shot 2015-12-29 at 1 49 03 pm

I suspect it might have something to do with my redux-redux installation, but I confirmed that it is installed in my ./node_module directory.

uncaught error Error: UnableToResolveError: Unable to resolve module react-redux/native from /Users/thachp/Code/snowflake/src/snowflake.js: Invalid directory /Users/node_modules/react-redux/native

Repro(s)
I followed the instructions in setup.md and made the suggested adjustments in xCode in one of your videos.

I loaded the snowflake project in xCode, hit build

ENV

npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "clean"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
@thachp thachp changed the title Unable to build in IOS Unable to build in IOS xCode Dec 29, 2015
@bartonhammond
Copy link
Owner

What version are you on? Check the package.json file.

@thachp
Copy link
Author

thachp commented Dec 29, 2015

"version": "0.0.8",
"react-redux": "^4.0.6",

@bartonhammond
Copy link
Owner

Try meeting me in Gitter - see Badge

@thachp
Copy link
Author

thachp commented Dec 30, 2015

I pinpointed the problem down to this specific error.

"Unable to resolve module react-redux/native".

The cause of this issue is with react-redux, if you downgrade the version to 3.1.0, then run npm install, the build should go through.

    "react-redux": "^3.1.0",

The reason for the error is because react-redux 3.1.0 has babel 5 dependency, while react-redux 4.0.6 has babel 6 dependency. The Babel5 vs Babel6 conflict is a known issue, see facebook/react-native#4062

@alexprice1
Copy link

Have you been able to upgrade yet? I am getting the error Unable to resolve module redux....

I am using redux 4.4.0

@bartonhammond
Copy link
Owner

There is no redux 4.4.0 see https://github.com/reactjs/redux/blob/master/package.json#L3 -it's at 3.3.1

@alexprice1
Copy link

Im sorry, meant to put react-redux: 4.4.0. It turned out being a peer dependency issue. Got it resolved after upgrading to react-native 0.21. Thanks!

@bartonhammond
Copy link
Owner

Good to hear! How was the upgrade to 0.21? Any issues? Did you upgrade both Android and iOS?

@alexprice1
Copy link

alexprice1 commented Mar 14, 2016 via email

@bartonhammond
Copy link
Owner

@alexprice91 thanks for the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants