Closed dstaley closed 8 years ago
@mbrookes I guess the alpha should come out ASAP. this component isn't published yet!
I got the same error running the webpack example
It's because we have a custom rule for eslint, but we haven't published the code to npm yet. :sweat_smile:
@alitaheri - for material-ui
it doesn't need to be published - it's installed locally.
What I'm not entirely sure is why @dstaley is seeing an error when running npm install
in the webpack example, which should work standalone. eslint-plugin-material-ui
isn't in devDependencies
or .eslintrc
.
@dstaley, out of curiosity did you try npm-install
in material-ui
first? (Not that you should have to, but I'm not getting an error here.)
git clone --depth 1 https://github.com/callemall/material-ui
cd material-ui
npm install
cd examples/webpack-example
npm install
npm start
@dstaley I got the same issue and it is because I did not run npm install
in material-ui
.
@mbrookes Thanks for the suggestions. eslint-plugin-material-ui
is included only in material-ui/package.json
.
Thanks @zzzliyang - good to know we have that workaround, but still note sure why it's being looked for in the first place, since the example uses the published Material-UI package from npm, and has its own .eslintrc
.
Okay, it's this:
http://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
I'll add root: true
, and we should be good.
Problem Description
When running
npm start
after runningnpm install
in the webpack example, the following error occurs:Module build failed: Error: Failed to load plugin material-ui: Cannot find module 'eslint-plugin-material-ui'
Steps to Reproduce:
git clone --depth 1 https://github.com/callemall/material-ui
cd material-ui/examples/webpack-example/
npm install
npm start
Here's the full output: