Misleading error message when the query engine is not found #15292
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: engine-not-found
topic: error
topic: Query engine ... could not be found.
Query engine ... for current platform ... could not be found.
Milestone
Bug description
I generated the client in a aarch64 VM and I wanted to check something with the same project in a x86-64 VM. However, I forgot to re-generate the client. I got the following error:
This error is mostly correct except one line that is very wrong and misleading:
binaryTargets
in my schema.debian-openssl-1.1.x
would have been exactly the right platform.How to reproduce
Option 1
Option 2
I didn't check, but a variant of option 2 on macOS with Rosetta is probably also possible.
Expected behavior
No "
You incorrectly pinned it to debian-openssl-1.1.x
" line in the error messagePrisma information
Environment & setup
Linux debian 5.10.0-18-arm64 #1 SMP Debian 5.10.140-1 (2022-09-02) aarch64 GNU/Linux
Linux debian86 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux
postgres (PostgreSQL) 14.5 (Debian 14.5-1.pgdg110+1)
v18.9.0
Prisma Version
The text was updated successfully, but these errors were encountered: