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

651
Vistas
Next.js - Failed to load next.config.js even after updating node js?

Alright, I am trying to run my next.js on local host for development by running npx next dev at the root of the project. Upon doing this, I get logs that a local server was started and then the command fails with this error:

UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:76651) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Not supported

I went to the link mentioned and saw "This could be due to a syntax error or attempting to require/import a module that wasn't available." I cloned a template project so I know I havent made any errors in the config file.

Other SO posts mention this is due to Node JS and Next js being out of sync in versions. I updated Node JS and am now on most up to date v10.15.3.

Given this is the Next template project, What is wrong here? How I can run my project locally for easy testing?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

If you’re trying to run the project in development mode then the command is npm run dev

about 4 years ago · Juan Pablo Isaza Denunciar

0

Solved - updating node via command line didnt work. Install latest node at https://nodejs.org/en/

about 4 years ago · Juan Pablo Isaza Denunciar
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