0

When trying to build a Next.js project, it hangs forever after outputting:

  ▲ Next.js 15.YY.ZZ
  - Environments: .env

It won't make it to "creating optimized build" as described in other questions.

2 Answers 2

1

This can be caused by open file/folder handles in other process specifically within the .next folder.

For me, this was just another terminal that whose active directory was within the .next folder. Closing that terminal allowed the build to continue.

Sign up to request clarification or add additional context in comments.

Comments

-1

For me, this was just another terminal that whose active directory was within the .next folder. Closing that terminal allowed the build to continue.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.