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

346
Views
Módulo no encontrado: no se puede resolver '@emotion/react' en 'E:\frontend\node_modules\@mui\styled-engine'

Estoy tratando de importar un componente de caja desde @mui/material/Box . Instalé MUI 5 usando el siguiente comando npm i @mui/material . Pero este error está ocurriendo, Module not found: Can't resolve '@emotion/react' in 'E:\frontend\node_modules\@mui\styled-engine'

Aquí está mi código.

 import * as React from 'react'; import Box from '@mui/material/Box'; export default function WhiteSpace() { return ( <div style={{ width: 200 }}> <Box component="div" sx={{ whiteSpace: 'nowrap', my: 2, bgcolor: 'background.paper', }} > White Space Nowrap. White Space Nowrap. </Box> <Box component="div" sx={{ whiteSpace: 'normal', my: 2, bgcolor: 'background.paper', }} > White Space Normal. White Space Normal. </Box> </div> ); }

Alguien me puede ayudar a arreglar esto?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

@emotion/react y @emotion/styled son dependencias similares de muchos paquetes mui , es decir, @mui/material . Esto nos da más libertad sobre qué versión de emoción nos gustaría usar, pero significa que debemos instalar las dependencias nosotros mismos.

 npm i @emotion/react @emotion/styled
over 4 years ago · Santiago Trujillo Report

0

Uno de mis amigos enfrentó el mismo problema hace un par de días, la solución es la siguiente:

Paso 1: npm i @emotion/react Paso 2: dará el mismo error con un nombre de dependencia diferente, instálelo con npm y su aplicación se ejecutará.

over 4 years ago · Santiago Trujillo Report

0

Podría ser que la dependencia @emotion/react esté fuera de package.json de alguna manera. Así que intente ejecutar npm install @emotion/react --save .

over 4 years ago · Santiago Trujillo 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!