paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
679 stars 55 forks source link

Support Prisma 5.0.0 version #298

Closed Abdulrahmanelheyb closed 10 months ago

Abdulrahmanelheyb commented 11 months ago

I have updated my npm packages to the new version when I did this I got an error while installing the packages

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: project-api@0.0.1
npm ERR! Found: @prisma/client@5.0.0
npm ERR! node_modules/@prisma/client
npm ERR!   @prisma/client@"^5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @prisma/client@"^4" from @paljs/plugins@5.3.3
npm ERR! node_modules/@paljs/plugins
npm ERR!   @paljs/plugins@"^5.3.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
belmeopmenieuwesim commented 11 months ago

@AhmedElywa Can we just add ^5.0 support here: "@prisma/client": "^4.15.0",

AhmedElywa commented 11 months ago

There are a lot of breaking changes that need to handle first before releasing the new version supporting Prisma. V5

AhmedElywa commented 10 months ago

we pushed V6 that support prisma v5

f8k8 commented 10 months ago

Trying to install the latest version gives an error:

npm ERR! Found: @prisma/client@5.2.0
npm ERR! node_modules/@prisma/client
npm ERR!   @prisma/client@"^5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @prisma/client@"^4" from @paljs/plugins@6.0.1
npm ERR! node_modules/@paljs/plugins
npm ERR!   @paljs/plugins@"^6.0.0" from the root project

It looks like the packages still have a dependency on Prisma 4

AhmedElywa commented 10 months ago

Oh yes, I forgot to change the peer dependency will fix it.

AhmedElywa commented 10 months ago

Fixed in v6.0.2