Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

137
Vistas
React broken after update - looking for index.js, yet my file name is index.jsx

Note: I'm quite new to React

My React App has been running without any flaws. After trying to install a remote component, I made the command "npm audit fix --force". Now I get the error "Could not find a required file. Name: index.js".

The problem is my index file is a .jsx file and not a .js file.

If I refactor my index file to a .js file, I get a syntax error like this:

Unexpected token: 
   9 | function App() {
  10 |   return (
> 11 |     <>
     |      ^
  12 |       <Layout />
  13 |     </>
  14 |   );

Seems like all of the sudden React only looks for .js files and not .jsx. How can this be? And how do I fix this?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda