Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

160
Vistas
Facing error while using materisl-ui icons in react app

I have used the commands npm install @material-ui/core and npm install @material-ui/icons in my react app and want to use the FileUploadIcon. I am importing it by using

import { FileUploadIcon } from '@material-ui/icons/FileUpload';

and later

<input type= "file" id = "file" onChange={checkJSON}/>
<label for = "file">
<FileUploadIcon />
    Choose a JSON file
</label>'

I am getting the error

Module not found: Can't resolve '@material-ui/icons/FileUpload' in 'F:\Profile\Desktop\New\UI\react-jwt-auth-master\src\components'

My package.json has these dependencies

"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

icon import code needs to be changed

change this code

import { FileUploadIcon } from '@material-ui/icons/FileUpload';

like this

import { FileUploadIcon } from '@material-ui/icons';

a solution to this question will help us

How do I upload Icons from material-ui?

about 4 years ago · Juan Pablo Isaza Denunciar

0

You can use the search here to see which icons are part of @material-ui/icons: https://material-ui.com/components/material-icons/. FileUploadIcon is not there.

If you have the svg for an icon such as from the material.io site, you can create an SvgIcon element by grabbing the path element from the svg:

Please refer this link: Module not found: Can't resolve '@material-ui/icons/ContentCut'

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda