#Error type any when deploy project nextjs 13 to Vercel

19 messages · Page 1 of 1 (latest)

normal hare
#

I'm having trouble pushing my project to vercel, even though before it was completely normal when I ran run build in vscode, but now it's like that. Does anyone have any suggestions to fix this error?

heady oliveBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

frozen estuary
#

npm run lint

normal hare
normal hare
frozen estuary
#

npm run build and then npm run start is not producing the error?

normal hare
frozen estuary
#

do you have the file typed?

normal hare
#

yes I have

frozen estuary
#

oh the type is coming from prisma

normal hare
#

that's right i made prisma connect to mongodb

frozen estuary
#

it doesn't have those types when it's building in Vercel, you missed a step but I'm not good with prisma so can't help you

normal hare
#

Is it because it cannot connect to the database when deployed to Vercel?

cold onyx
#

Do you have npx prisma generate added to your build code? If I remember that is needed

#

Normally prisma will throw an error if it isn't included but worth checking

cold onyx
#

Yeah that looks correct

normal hare
cold onyx
#

At any point in your build logs do you see it running prisma generate?