Next.js Discord

Discord Forum

Deployment on vercel shows type errors which aren't there locally

Unanswered
Yann posted this in #help-forum
Open in Discord
Here's a link to my git
https://github.com/Turboyann/sieventic/blob/main/src/app/components/ClientSideRendering.tsx

PLEASE HELP I HAVE TO TURN THIS SHIT IN TOMORROW EVENING

9 Replies

You don't even have a type called BlogPost, it's called ArticleItem in the repo you sent
the properties look correct based on the error but it's the wrong name
oh nvm, it was in a different type file, the types.d.ts
It may be due to a name collision of the root types file and the root types folder, because the types folder only has an index file, ../types could be either the index file or the types.d.ts file, I suggest renaming the index.ts file to the types name. Personally, I like having a file for each of my custom types inside the types folder and name them accordingly
I'm so dead if I don't get this to work any ideas whom to ask, text or mail cuz I need this to be done asap
yes I changed the location of the type from the types.d.ts to the folder types. Then renamed the child of the folder to types.ts and added the type BlogPost to it. After that I made sure to keep the imports updated as well
sadly still having the same error
Hey! Im experiencing a simmilar issue, did you manage to solve it?