Failed to build: exit status 1 when trying to deploy a Next.js app to App platform

Hi. I was attempting to Deploy a Next.js App to App Platform , I followed the tutorial fully. But when I tried to deploy it, i got this error:

ERROR: failed to build: exit status 1

When searching google for this error, I found some answers saying that clearing the cache, and do some commands to the CLI. But I can’t even access the CLI. Help would be much appreciated.

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have exactly the same problem and followed the same tutorial as well. In the meantime, has anyone been able to solve the problem?

ERROR: failed to build: exit status 1

This is also happening on my next app deployed via app platform. Does anyone know how to fix it?