#Error type any when deploy project nextjs 13 to Vercel
19 messages · Page 1 of 1 (latest)
🔎 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)
npm run lint
i tried it but nothing better happened
No ESLint warnings or errors
npm run build and then npm run start is not producing the error?
Yes, it works perfectly fine, but when deploying, an error occurs
do you have the file typed?
yes I have
oh the type is coming from prisma
that's right i made prisma connect to mongodb
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
Is it because it cannot connect to the database when deployed to Vercel?
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
you mean it
Yeah that looks correct
but it still doesn't run
At any point in your build logs do you see it running prisma generate?