mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

Question Material-ui-icons module not found

Open RaySheikh opened this issue 8 years ago • 5 comments

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 avatar May 01 '18 18:05 RaySheikh

@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

gregnb avatar May 01 '18 19:05 gregnb

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 avatar May 01 '18 19:05 RaySheikh

@RaySheikh Install exact version of the peer dependency

yarn add material-ui-icons@^1.0.0-beta.36

victorbueno avatar May 03 '18 20:05 victorbueno

Thanks Victor that did it. I was using beta.42

RaySheikh avatar May 03 '18 21:05 RaySheikh

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?

matteo1976 avatar Apr 29 '19 08:04 matteo1976