"An unexpected error happened when running this build."

I keep on getting “An unexpected error happened when running this build.” on vercel even though my code builds find on my local computer.

^^

sorry, i’m not sure what info is relevant, so please let me know what info is needed!
i just keep on getting this when i try to deploy via vercel

The root directory you have set here isn’t a valid root directory which is the reason your build is failing: https://vercel.com/izumiandos-projects/portfolio/settings/build-and-deployment

1 Like

Hi Swarnava, thanks for getting back to me so quickly. I am not sure what you mean, I have a active github repo in the root directory, and it is the same directory from which i can run the code on my local machine. (update: I made a new project on vercel and it worked with the same source code so i’m all set thanks!)

Unless you have Monorepo, since the root directory is already the entire repo which you are deploying, you don’t need a root directory and keep blank.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.