am getting this error in Production server. But wh...
# orm-help
h
am getting this error in Production server. But when i run the same in local connected to the production server it doesnt throw any error. Any help heere?
Copy code
2021-09-14T14:11:16.473Z	7d2b4b8b-a60a-4d0e-9752-bd5a29000b57	ERROR	PrismaClientValidationError: Unknown arg `views` in data.views for type ProjectUpdateInput. Did you mean `id`?
    at Document.validate (/var/task/node_modules/@prisma/client/runtime/index.js:35604:19)
    at PrismaClient._executeRequest (/var/task/node_modules/@prisma/client/runtime/index.js:37991:17)
    at consumer (/var/task/node_modules/@prisma/client/runtime/index.js:37936:23)
    at /var/task/node_modules/@prisma/client/runtime/index.js:37938:47
    at AsyncResource.runInAsyncScope (async_hooks.js:197:9)
    at PrismaClient._request (/var/task/node_modules/@prisma/client/runtime/index.js:37938:25)
    at request (/var/task/node_modules/@prisma/client/runtime/index.js:38041:77)
    at _callback (/var/task/node_modules/@prisma/client/runtime/index.js:38246:14)
    at PrismaPromise.then (/var/task/node_modules/@prisma/client/runtime/index.js:38253:23) {
  clientVersion: '3.0.2'
}
RequestId: 7d2b4b8b-a60a-4d0e-9752-bd5a29000b57 Error: Runtime exited with error: exit status 1
Runtime.ExitError
r
Could you run
prisma generate
explicitly on your production server and check?
h
I use vercel. any idea how i can do that?
it auto deploys from github
@Ryan
r
I think it should be possible to add a command in Vercel to run during deployment.
h
Copy code
prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma

āœ” Generated Prisma Client (3.0.2) to ./node_modules/@prisma/client in 213ms
You can now start using Prisma Client in your code. Reference: <https://pris.ly/d/client>
import { PrismaClient } from '@prisma/client' const prisma = new PrismaClient()
Copy code
warn Prisma 2.12.0 has breaking changes.
You can update your code with
`npx @prisma/codemods update-2.12 ./`
Read more at <https://pris.ly/2.12>

warn Versions of prisma@3.0.1 and @prisma/client@3.0.2 don't match.
This might lead to unexpected behavior.
Please make sure they have the same version.
I get this when i run in localhost itself @Ryan
r
Adding this in the build command should work.