tsconfig.json if you followed instruction from prisma then add "lib/**/*.ts" from include
for example: "include": ["next-env.d.ts", "/*.ts", "/.tsx", ".next/types/**/.ts","lib/**/*.ts"],
ctrl + shift + p then restart typescript restart server assuming you followed instruction from prisma. they changed from global.d.ts => lib/prisma.ts not sure which one you followed. instruction are different than year ago make sure you check your version