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

React & React-Native versions conflict while installing material-ui #4368

Closed
aliajoudanian opened this issue May 27, 2016 · 5 comments
Closed
Labels
out of scope The problem looks valid but we won't fix it (maybe we will revisit it in the future)

Comments

@aliajoudanian
Copy link

I'm trying to install material-ui on new React-Native project which running react-native: 0.26.2 & react: "15.0.2. when I've installed material-ui npm package I've gotten these errors & warnings:

npm WARN peerDependencies The peer dependency react@^15.1.0 included from react-addons-update will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency react@^15.1.0 included from react-addons-transition-group will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency react@^15.1.0 included from react-addons-create-fragment will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "material-ui"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package react@15.0.2 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.26.2 wants react@15.0.2
npm ERR! peerinvalid Peer react-dom@15.1.0 wants react@^15.1.0
npm ERR! peerinvalid Peer react-tap-event-plugin@1.0.0 wants react@^15.0.0-0
npm ERR! peerinvalid Peer material-ui@0.15.0 wants react@^15.0.0

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Ali/Desktop/app/second/npm-debug.log

It seems there is version conflict for using last version of materil-ui with last react-native build.

Is there anyone that realize what can I do ?

@muibot muibot added the Triage label May 27, 2016
@mbrookes
Copy link
Member

@aliajoudanian Material-UI doesn't currently support React Native. There are some references to it in the code from some experimental work that @oliviertassinari did, but nothing more at this stage.

@aliajoudanian
Copy link
Author

Thanks @mbrookes , Is there any specific plan to support material-ui in near future?

@mbrookes
Copy link
Member

Maybe in the distant future. 😄

@oliviertassinari
Copy link
Member

oliviertassinari commented May 27, 2016

Aside from not providing React Native components. It would be good that Material-UI can be installed under the same project with React Native.
E.g. what if we want to share some business logic between the React Native app and the React Dom app?

Actually, I don't see why it can't be done right now. Are you sure it's linked to this project?
We don't have a react-addons-update dependency.

@lucasbento
Copy link

Any update on this issue and/or material-ui supporting react-native?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
out of scope The problem looks valid but we won't fix it (maybe we will revisit it in the future)
Projects
None yet
Development

No branches or pull requests

6 participants