Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

103
Views
No se pueden crear estilos de alerta personalizados en MUI v5: no se pueden leer las propiedades de undefined (leyendo 'tipo')

Estoy tratando de crear variantes personalizadas del componente Alert de MUI, pero no puedo hacerlo: https://codesandbox.io/s/crimson-glade-tfix6s

Al intentar actualizar el tema con:

 export const MuiAlert = { MuiAlert: { variants: [ { props: { severity: "text" }, style: { ...root, background: palette.primary.main, color: palette.background.default, "& .MuiSvgIcon-root": { height: 16 } } } ] } };

Componente

 <Alert severity="text">This is an error alert — check it out!</Alert>

me sale el error

 Cannot read properties of undefined (reading 'type')

Normalmente esperaría poder crear versiones sin estilo con la matriz de variantes que se encuentra en MuiAlert.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!