Re: My run build is failing everytime. saying build error exit 1

So I’m just uploading my first vercel app. I npm run build and then, i get an error that says failed to load next.config.js. And npm run build error. I tried changing my next config js, i even tried making an env.mjs file instead of a .js file, even tried the ci = false hack people wer talking about. Just wondering what’s there left to try.

Using next, shadcn, the website renders perfectly on the web just when i try to deploy i get a bunch of warnings and then its an issue. Anyone know anything?

Hi @claystonex, welcome to the Vercel Community!

Sorry that you’re facing issues with deploying your Next.js app. Can you share whether you scaffolded the project using create next app or are you using some other template?

Could you please share your public repo or a minimal reproducible example. That will let us all work together from the same code to figure out what’s going wrong.

1 Like