Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix prisma-cli and prisma client version mismatch #184

Closed
rajdip-b opened this issue Apr 19, 2024 · 6 comments
Closed

Fix prisma-cli and prisma client version mismatch #184

rajdip-b opened this issue Apr 19, 2024 · 6 comments
Labels
good first issue Good for newcomers scope: api Everything related to the API type: bug Something isn't working

Comments

@rajdip-b
Copy link
Member

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 rajdip-b added type: bug Something isn't working good first issue Good for newcomers scope: api Everything related to the API labels Apr 19, 2024
@rajdip-b rajdip-b moved this to Todo in keyshade-api Apr 19, 2024
@jamesfrye420
Copy link
Contributor

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

@jamesfrye420
Copy link
Contributor

Why is Prisma Client a dev dependency?

"@prisma/client": "5.12.1",

@rajdip-b
Copy link
Member Author

rajdip-b commented May 5, 2024

Why is Prisma Client a dev dependency?

"@prisma/client": "5.12.1",

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!

@jamesfrye420
Copy link
Contributor

@rajdip-b Please link to this

@rajdip-b
Copy link
Member Author

rajdip-b commented May 6, 2024

Okay!

@rajdip-b rajdip-b moved this from Todo to Under review in keyshade-api May 6, 2024
@rajdip-b rajdip-b moved this from Under review to Done in keyshade-api May 12, 2024
@muntaxir4
Copy link
Contributor

muntaxir4 commented Dec 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers scope: api Everything related to the API type: bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants