The lookup path for the Query Engine appears to be...
# orm-help
j
The lookup path for the Query Engine appears to be off for my project. It searches in
db/generated/client
when it should search in
./db/generated/client
: I get a 'module not found' error when prisma tries to find my query engine binary here, which results in the 'Library may be corrupt' error defined below that line. However the engine is there - it looks like the path prisma is using to find the engine is wrong. Oddly this only occurs when working in a Docker image. Code runs fine locally. Here's where it looks:
Copy code
prisma:client:libraryEngine Searching for Query Engine Library in db/.prisma/client +0ms
prisma:client:libraryEngine Searching for Query Engine Library in /Users/path/to/local/directory/my-service/db/generated/client +1ms
prisma:client:libraryEngine Searching for Query Engine Library in db/generated/client +0ms
When I add
./
in front of the path to resolve the engine as
./db/generated/client
, the code works. Does the engine need to be located at the root, or is there something obvious I'm doing wrong?
`home/node/build/db/schema.prisma`:
Copy code
generator client {
  provider      = "prisma-client-js"
  output        = "./generated/client"
  binaryTargets = ["native", "linux-musl"]
}
n
Hey Jacob 👋 Do you have a sample public repository? I would like to try to reproduce this.
j
Thanks @Nurul, I do not. I'll see if i can set aside some time later this week to do so.
👍 1