javascriptkotlinwebpackmaterial-ui

Module not found: Error: Can't resolve '@mui/icons-material/AddCircle', but @mui/icons-material is installed


I write in kotlin JS (IR compiler). I get this error:

Module not found: Error: Can't resolve '@mui/icons-material/AddCircle'

But @mui/icons-material is installed.

I checked whether this module is installed. It is installed. Exactly. Then I do not know what to do.


Solution

  • @mui and @material-ui are 2 different things. Try this:

    npm install @mui/icons-material --force
    npm install --save material-ui-icons
      
    

    If there are no changes, then try this:

    npm install @material-ui/core --force
    npm install @material-ui/icons --force