"it works on my machine" deployed app to vercel and it blew up
it was hard enough to build the app, I overcame the chanllenges and tried to deploy the first version on vercel, but I was then devastated, nothing works. my app looks like 10/10 tinder profile pic, deploying on vervel is like filter and makeup as taken off and I got catfished.
I've came to the realization the computers are anti human and AI should replace mankind, why is this happening, why is the meaning of life? Idk, just like I don't know how to solve this issue
8 Replies
Check the logs in vercel
They should give more info
It's hard to tell without more information about those errors.
Some questions:
* Are you using
create-t3-app
?
* Did you disable any eslint
rules?
Things to consider:
* It might be due to an infinite loop somewhere.
* React hook used improperly.It might also be a mistake in the environment variables which could lead to some libs causing errors
I’m using t3, I don’t know what eslint is, but I’ll look into it
thx for the advice, I'll have a look
You can run the build command locally as well. It saves the headache of pushing potentially bad build code to GitHub. A lot if not most of the time, running the build command will output the same errors that Vercel does. This is a big time saver for finding the build errors. I know that does help the errors you’re having, but it might in the future.
you can use vercel cli and link it to the project
and run vercel build locally
eslint is in the deps... it tells you some good practices and what to do to not get errors warnings etc later on in your project
usually the thing that underscores parts of your project with red
❤️