material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

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

Open aliajoudanian opened this issue 10 years ago • 5 comments

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 [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants react@^15.1.0
npm ERR! peerinvalid Peer [email protected] wants react@^15.0.0-0
npm ERR! peerinvalid Peer [email protected] 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 ?

aliajoudanian avatar May 27 '16 14:05 aliajoudanian

@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.

mbrookes avatar May 27 '16 14:05 mbrookes

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

aliajoudanian avatar May 27 '16 14:05 aliajoudanian

Maybe in the distant future. 😄

mbrookes avatar May 27 '16 15:05 mbrookes

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.

oliviertassinari avatar May 27 '16 18:05 oliviertassinari

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

lucasbento avatar Aug 04 '16 18:08 lucasbento