Question Material-ui-icons module not found
Hi, I'm getting an error "material-ui-icons/clear" not found. After some research i found the material-ui-icons no longer exists. it has been changed to @material-ui/icons. Could this be related?
Thanks,
Ray
@RaySheikh I am not seeing that issue. look below
npm install material-ui-icons --save
npm WARN saveError ENOENT: no such file or directory, open '/Users/gnowakow/testing/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/gnowakow/testing/package.json'
npm WARN [email protected] requires a peer of material-ui@^1.0.0-beta.16 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN testing No description
npm WARN testing No repository field.
npm WARN testing No README data
npm WARN testing No license field.
+ [email protected]
updated 1 package in 1.607s
Thanks for getting back so fast. Perhaps its something else. Below is the error: ./node_modules/mui-datatables/dist/index.js Module not found: Can't resolve 'material-ui/Checkbox' in 'C:\New folder\TrainingApps\Mui-datatables\ClientApp\node_modules\mui-datatables\dist'
I will try to troubleshoot further.
@RaySheikh Install exact version of the peer dependency
yarn add material-ui-icons@^1.0.0-beta.36
Thanks Victor that did it. I was using beta.42
I still have the problem I have "material-ui-icons": "^1.0.0-beta.36", but when i start to compile i have this error: Module not found: Can't resolve '@material-ui/icons/Clear' in '/myapp/node_modules/mui-datatables/dist'
I use yarn and not npm it will be a problem?