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

505
Views
Error: No se puede encontrar el archivo: 'index.js' no coincide con el nombre correspondiente en el disco: './node_modules/React/react'

Aquí hay una imagen del error y el error de la consola...

Captura de pantalla del error

Mi código parece ser correcto y las rutas de las importaciones también son buenas, no entiendo por qué recibo este error.

Notificaciones.js

 import React from 'React' const Notifications = () => { return( <div> <p>Notifications</p> </div> ) } export default Notifications

ProjectList.js

 import React from 'React' const ProjectList = () => { return( <div> <div className="project-list section"> <div className="card z-depth-0 project-summary"> <div className="card-content grey-text darken-3"> <span className="card-title">Project Title</span> <p>Posted by Net Ninja</p> <p className="grey-text">3rd September, 2018</p> </div> </div> </div> </div> ) } export default ProjectList
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

import React from 'React'

debiera ser

 import React from 'react'

Está intentando importar React en lugar de react . El nombre del módulo distingue entre mayúsculas y minúsculas, en este caso el nombre es react .

over 4 years ago · Santiago Trujillo Report

0

Notificación.js

 import React from 'react' const Notifications = () => { return( <div> <p>Notifications</p> </div> ) } export default Notifications

ProjectList.js

 import React from 'react' const ProjectList = () => { return( <div> <div className="project-list section"> <div className="card z-depth-0 project-summary"> <div className="card-content grey-text darken-3"> <span className="card-title">Project Title</span> <p>Posted by Net Ninja</p> <p className="grey-text">3rd September, 2018</p> </div> </div> </div> </div> ) } export default ProjectList

el nombre del módulo es reaccionar, no reaccionar y, dado que las importaciones distinguen entre mayúsculas y minúsculas, la importación de React desde 'React' está causando un error

over 4 years ago · Santiago Trujillo Report

0

Tuve el mismo problema y fue porque importé React no react , por lo que debería ser así.

 import React from 'react'
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!