Example broken (peerDependencies requirements)
To reproduce:
git clone https://github.com/callemall/material-ui.git
cd material-ui
npm install
cd example
npm install
Error:
npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@>=0.13
npm ERR! peerinvalid Peer [email protected] wants react@~0.13.x || ~0.12.x
When updating package to request latest, npm install completes successfully.
npm start results in gulp looking for (what appear to be) js version of styles/themes. No app.js is compiled:
[14:21:07] gulp-notify: [Compile Error] Cannot find module '../../../src/js/styles/theme.js' from '/Users/Chad/Documents/Work/Modetwo/Site/material-ui/example/src/app'
[14:21:08] gulp-notify: [Compile Error] Cannot find module '../../../../src/js/svg-icons/svg-icon.jsx' from '/Users/Chad/Documents/Work/Modetwo/Site/material-ui/example/src/app/components'
Tried patching all this manually but am getting a host of errors. Will wait for feedback before proceeding further... thanks in advance.
same here
use the last release: https://github.com/callemall/material-ui/releases/tag/v0.7.5
@MAH1987 even that release doesn't work
I had this same error. Tried using the release 0.7.5 ( downloaded the zip ) and had the same error.
npm --version
2.7.5
I managed to fix things by changing the react dependency in package.json to "react": "^0.13.0" ( from 0.12 ).
gulp then worked. ( as well as npm start )
Should the react dependency be updated in the example package.json?
Seems like they change their file structure and API a bit. I create a PR and find a problem I couldn't solve anymore. any further fix on it would be good.
Hi everyone, I'm working on a fix for this issue. Aside from the old version of Material-UI it is using, I believe there may be a conflict with the versions of React being used between Material-UI and the example as @eadz stated. This has been resolved on a previous issue here.
Also, the example folder current uses the Material-UI v0.8.0 prerelease and thus will not work on v0.7.5.
@mmrtnz I followed the instructions in your pr #652, however I get the error in the console " Uncaught TypeError: Cannot read property 'ThemeManager' of undefined" when running the example
I'm having the same problem as @eadz. Does anyone know how to make the example work with any version?
@mmrtnz: thank you for your great work with the library! Looks really nice, and I can't wait to try it out properly.
same problem with @eadz and @juhoojala
@eadz It looks like I made a mistake on the file location to place the generated lib folder, it should be material-ui/example/node_modules/material-ui/lib/ rather than material-ui/example/node_modules/lib/, I'm sorry about that. Can you please let me know if that solves the issue?
@mmrtnz Yes, of course. This fixes the issue. Thanks!
@mmrtnz it works now, thanks
Glad to hear it's now working :) I will be closing this issue in that case.