Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

638
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

0

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

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda