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

137
Views
No se pueden leer las propiedades de undefined (leyendo 'arriba') en la interfaz de usuario de Material con estilo

Recibo el error Uncaught TypeError: Cannot read properties of undefined (reading 'up') mientras ejecuto el siguiente código: No pude compilar mi reacción js

En Index.js

 import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import { ThemeProvider } from '@mui/material'; import { theme } from './Components/Theme'; const root = ReactDOM.createRoot(document.getElementById('root')); root.render( <React.StrictMode> <ThemeProvider theme={theme}> <App /> </ThemeProvider> </React.StrictMode> ); reportWebVitals();

En Theme.js Ahora en el theme.js usando material ui Alguien que me ayude.

import { createTheme } desde "@mui/material";

exportar const tema = createTheme({

 palette: { primary: { main: "#000", light: "#543" }, secondary: { main:"#arbs3", }, otherCo: { main:"#999" } }

})

Luego en NavBar.jsx

 const SearchIcon = styled(Box)(({theme})=>({ display: 'none', padding: '1rem', gap: '12px', alignItems: 'center', //small or greater so We used up [theme.breakpoints.up('sm')]: { display: 'flex', } }))
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Todo me parece bien.

Lo único que debe verificar es que está utilizando la importación correcta para la función styled() .

Deberías importarlo así:

 import {styled} from "@mui/material/styles"
about 4 years ago · Juan Pablo Isaza Report
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!