izumiando
(Izumiando)
April 12, 2025, 7:07pm
1
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
swarnava
(Swarnava Sengupta)
April 12, 2025, 7:30pm
2
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
izumiando
(Izumiando)
April 12, 2025, 7:50pm
3
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!)
swarnava
(Swarnava Sengupta)
April 13, 2025, 5:38am
4
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
system
(system)
Closed
April 20, 2025, 5:39am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.