Next.js Discord

Discord Forum

Next.js - Vercel Deploy issue

Answered
Saltwater Crocodile posted this in #help-forum
Open in Discord
Saltwater CrocodileOP
In my Development everything is okay but when i am trying to deploy the application or vercel it is giving build error
For Exmaple : Module not found: Can't resolve '@/components/ThemeToggler'

can anyone help me??
Answered by @ts-ignore
the U means untracked, meaning this file is just on your system locally and not added to version control
View full answer

9 Replies

Saltwater CrocodileOP
But i can successfully build on my machine
did you push the code to github? the green color of your files means you didn't push it yet
Saltwater CrocodileOP
@@ts-ignore The last change is not really necessary. so it should work
the U means untracked, meaning this file is just on your system locally and not added to version control
Answer
Saltwater CrocodileOP
Omg , let me check @@ts-ignore
@Saltwater Crocodile <@510480545160101898> The last change is not really necessary. so it should work
It is, that’s why you’re getting the import error
Saltwater CrocodileOP
@@ts-ignore Thank you so much sir, from the beginning my components were never pushing on GitHub and I never checked it :meow_meow: . How foolish I am!! But at least you told me thank you so much. now it worked.
Thank you so much ❤️
But it was a ridiculous mistake
@"use php" It is, that’s why you’re getting the import error
Saltwater CrocodileOP
@"use php" Thank you also