Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

992
Visualizações
material-ui 'createSvgIcon' is not exported from '@material-ui/core/utils'

I have installed material-ui/lab in order to user the alert component, but whenever i import it with: import Alert from '@material-ui/lab/Alert'; it fails to compile and throws this error:

./node_modules/@material-ui/lab/esm/internal/svg-icons/SuccessOutlined.js
Attempted import error: 'createSvgIcon' is not exported from '@material-ui/core/utils'.

So I tried to google this problem and found another question about the material-ui/lab/AutoComplete component (This question exactly) and the accepted answer was to update the material-ui/core to version 4.9.9, and it looks like it worked for the guy who asked, but sadly not for me, i have this versions of all the installed material-ui things:

    "@material-ui/core": "^4.9.9",
    "@material-ui/icons": "^4.9.1",
    "@material-ui/lab": "^4.0.0-alpha.48",

so now i'm asking u guys if there is another way to solve this problem, thanks

over 4 years ago · Santiago Trujillo
7 Respostas
Responde à pergunta

0

if you use yarn, yarn upgrade solve the problem for me.

over 4 years ago · Santiago Trujillo Relatório

0

My problem is solved with yarn upgrade.

over 4 years ago · Santiago Trujillo Relatório

0

try to reinstall @material-ui/lab using following command

for npm

npm install "@material-ui/lab"

for yarn

yarn add "@material-ui/lab"
over 4 years ago · Santiago Trujillo Relatório

0

This issue is reported here and closed as the latest version of /core and lab fixes the issue: https://github.com/mui-org/material-ui/issues/20482

I had the same error and using this combination of versions fixed the problem:

"@material-ui/core": "^4.9.10"
"@material-ui/lab": "^4.0.0-alpha.49"

Hope this helps

over 4 years ago · Santiago Trujillo Relatório

0

Had the same issue with these versions:

    "@material-ui/core": "^4.9.10",
    "@material-ui/icons": "^4.5.1",
    "@material-ui/lab": "^4.0.0-alpha.49",

npm update didn't warn about anything but didn't resolve it either, I had to remove the node_modules folder alltogether and the package-lock.json file. Not sure which one actually fixed it..

Also added this to the linked issue https://github.com/mui-org/material-ui/issues/20482

over 4 years ago · Santiago Trujillo Relatório

0

In my case, npm install @material-ui/core @material-ui/lab didn't work. But deleting node_modules and package-lock.json then npm install does the job.

over 4 years ago · Santiago Trujillo Relatório

0

It is the @material-ui/core version problem because you don't have latest @material-ui/core version. Remove @material-ui/core and install it again.remove node modulus and do npm install.working

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda