Material-ui: Module not found: Can't resolve '@material-ui/core/SvgIcon' in 'node_modules/@material-ui/icons/utils'

Created on 17 May 2018  路  8Comments  路  Source: mui-org/material-ui

I updated to the latest version of the library, and since then nothing works cause it's throwing this error when importing any kind of Icon.

Most helpful comment

I was able to resolve by using @material-ui/icons package like this import SearchIcon from '@material-ui/icons/Search';

But it's required to install also @material-ui/core. Without that using icon will fail.

All 8 comments

Sorry, i didn't manage to use @material-ui/core as new implementation

@storrisi I don't understand your second comment, how did you fix this?

@inform880 since a new version of the library is available, now icons are in a different portion of library, so you need to install it apart from the main material library.

How can we install that

hmm same problem, why don't you wrote solution here directly?

same problem

I was able to resolve by using @material-ui/icons package like this import SearchIcon from '@material-ui/icons/Search';

But it's required to install also @material-ui/core. Without that using icon will fail.

If anyone using @material-ui/icons you first need to install @material-ui/core.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bessonov picture Bessonov  路  93Comments

nathanmarks picture nathanmarks  路  100Comments

HZooly picture HZooly  路  63Comments

garygrubb picture garygrubb  路  57Comments

celiao picture celiao  路  54Comments