codinginflow / nextjs-job-board

https://nextjs-job-board-one.vercel.app
88 stars 54 forks source link

Prisma is not finding the JobWhereInput for some reason #1

Open weisisheng opened 10 months ago

weisisheng commented 10 months ago

About 2:07 in to video, when I try to create the search filter and 'where' segments, I am getting the squiggly line TS errors that "Prisma.JobWhereInput" has no exported members. Checked the validation file is correct.

Here is exact error:

Property 'JobWhereInput' does not exist on type 'typeof import("/home/foouser/nextjs-world/coding-in-flow-tutorials/nextjs-job-board/node_modules/@prisma/client/index"

I am more familiar with drizzle-orm so this is a new command and error for me.

Thanks in advance for any assistance. Already checked copilot and google.

next.js 14.10.0 @prisma/client 5.7.1 prisma 5.7.1 react ^18

codinginflow commented 10 months ago

Did you generate the prisma client with npx prisma generate?

weisisheng commented 10 months ago

I did, let me try it again (think I can do this without harm)

weisisheng commented 10 months ago

Yes, re-ran prisma generate, no errors, restarted typescript server. puzzled. will give it a look-see over weekend/

fhub-1 commented 4 months ago

Yes, re-ran prisma generate, no errors, restarted typescript server. puzzled. will give it a look-see over weekend/

did you mange the error