I've got a quick question. I have react and all included but I want to import component from a material-ui library and the path is all good but it cannot find the module.
My code:
import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import RaisedButton from 'material-ui/RaisedButton';
var Comp = React.createClass({
render(){
return(
<p>aa</p>
);
}
});
ReactDOM.render(
<Comp />,
document.getElementById('app')
);
Just a base code.
This is the error in the console:
Uncaught Error: Cannot find module "material-ui/styles/MuiThemeProvider"
at webpackMissingModule (App.js:57)
at Object.<anonymous> (App.js:57)
at __webpack_require__ (App.js:20)
at App.js:40
at App.js:43
And that is files folder:
So, what's wrong?
