`@prisma/client@x is not compatible with prisma2@y. Their versions need to be equal.`, generates anyway
See original GitHub issueC:\Users\Jan\Documents\throwaway\1496
λ npx prisma2@alpha generate
⚠️ @prisma/client@2.0.0-preview021 is not compatible with prisma2@2.0.0-alpha.735. Their versions need to be equal.
Generated Prisma Client to .\node_modules\@prisma\client
Done in 13.52s
Is this a warning or an error? The further output indicates it generated anyway. Should it do that or should it really fail?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Could not resolve @prisma/client despite the installation that ...
Please try to install it by hand with npm install @prisma/client and rerun prisma generate . (Which I tried and doesn't make any...
Read more >Generating the client (Concepts) - Prisma
This page explains how to generate Prisma Client. It also provides additional context on the generated client, typical workflows and Node.js configuration.
Read more >Prisma Client
Prisma Client is an auto-generated, type-safe query builder generated based on the models and attributes of your Prisma schema.
Read more >Advanced type safety (Reference) - Prisma
Prisma Client provides full type safety for queries, even for partial queries or included relations. This page explains how to leverage the generated...
Read more >Prisma Client API (Reference)
The unique field in the where option and the unique field in the create option have the same value. If your query does...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Decision: We talked it through, and right now there is no reason to have this warning in the first place because CLI and Client can currently be used in any combination. In the future we might want to have a versioning system for the internal API, which could lead to errors on mismatch.
The error message should probably make this more explicit by not just printing the package names, but annotating them in some way.
In the comments above we are discussing if a warning is actually enough here or if this should/has to be an error.
Valid point, please open a new issue for this so this does not get lost.