Next.js Discord

Discord Forum

Deployment on Vercel

Unanswered
Yellow-horned horntail posted this in #help-forum
Open in Discord
Yellow-horned horntailOP
I am trying to deploy my project on vercel but keep getting this error. Previously the project was deployment was fine. I don't know what change could be causing the failure as the error path is from vercel's environment.

14 Replies

Try going back to the commit before the error was introduced and look at the code you have changed for the error to show up.
It looks like an issue with /auth/register
Yellow-horned horntailOP
That's just the thing I already did that. I checked out to a new branch to implement my changes and when I decided to rollback and deploy from the last stable instance it failed again.
Yellow-horned horntailOP
Yeah I tried doing that I get errors, even tried yarn start/ npm run start
Forest bachac
Same issues🥲
Yellow-horned horntailOP
And I just decided to try again now it worked. @Forest bachac try upgrading your project to next version 14.1.0 using yarn add next@latest. I usually delete my node modules update dependencies then install them again. Then add the build script to your package.json that should do it.
Forest bachac
Thank you for advice, but I am currently using 14.1.0.
Yellow-horned horntailOP
Well that's next for you :lolsob:
Yellow-horned horntailOP
@Northeast Congo Lion my builds are successful on my local but I am still getting this error.
Yellow-horned horntailOP
Yes I am, and I have added the environment variables on my deployment.
Yellow-horned horntailOP
@Siberian @Northeast Congo Lion Here's an update to the error. Local build is successful and there is no util folder in my directory.
Yellow-horned horntailOP