Yilmaz Ugurlu
02/07/2021, 1:11 PMYilmaz Ugurlu
02/07/2021, 1:13 PMQuery engine binary for current platform "darwin" could not be found.
This probably happens, because you built Prisma Client on a different platform.
(Prisma Client looked in "/query-engine-darwin")
Do I need to also install prisma to my target application (the application that I use my Prisma based library)?Briggs
02/07/2021, 10:17 PMgenerator client {
provider = "prisma-client-js"
output = "../generated/client"
binaryTargets = ["darwin", "linux-musl"]
}
Eddy Nguyen
02/08/2021, 12:49 AMgenerator client {
...
binaryTargets = [env("PRISMA_BINARY_TARGET")]
}
nikolasburk
nikolasburk
Yilmaz Ugurlu
02/08/2021, 3:11 PM/dist
folder in the build phase and also added additional binary targets. That fixed the problem for me.Yilmaz Ugurlu
02/08/2021, 3:12 PMnpm link
and it has resolved.Yilmaz Ugurlu
02/08/2021, 3:13 PM