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

649
Views
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 answers
Answer question

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 Report

0

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

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