keyshade icon indicating copy to clipboard operation
keyshade copied to clipboard

Fix prisma-cli and prisma client version mismatch

Open rajdip-b opened this issue 2 years ago • 5 comments

Description

This is the error we are facing right now:

warn Versions of [email protected] and @prisma/[email protected] don't match.
This might lead to unexpected behavior.
Please make sure they have the same version.

Solution

We want to upgrade @prisma/client to 5.12.1 or equivalent

rajdip-b avatar Apr 19 '24 15:04 rajdip-b

Also removing Prisma as a dependency from api as it is already a top level dependency

jamesfrye420 avatar May 05 '24 18:05 jamesfrye420

Why is Prisma Client a dev dependency?

https://github.com/keyshade-xyz/keyshade/blob/3d5bcac76d5c5f64b13eb0f8e7bbd14a3101e322/package.json#L137

jamesfrye420 avatar May 05 '24 18:05 jamesfrye420

Why is Prisma Client a dev dependency?

https://github.com/keyshade-xyz/keyshade/blob/3d5bcac76d5c5f64b13eb0f8e7bbd14a3101e322/package.json#L137

The client package is for using it along pnpx.

Also, what you can do is, move the top level prisma into the api since that's how we will need to make it work. If we need to fix some scripts for that (the ones prefixed with db:), then migrate them aswell!

rajdip-b avatar May 05 '24 18:05 rajdip-b

@rajdip-b Please link to this

jamesfrye420 avatar May 06 '24 07:05 jamesfrye420

Okay!

rajdip-b avatar May 06 '24 08:05 rajdip-b

This is already fixed, now both prisma and prisma/client have equal versions 5.19.0. Reference: #209

muntaxir4 avatar Dec 05 '24 20:12 muntaxir4