Did anyone succeed in making prisma client work wi...
# prisma-client
a
Did anyone succeed in making prisma client work with serverless framework on a mac m1? I am deploying it using Node with Typescript. I keep getting this error…
Copy code
Error: Query engine library for current platform "darwin" could not be found.
  You incorrectly pinned it to darwin
  
  This probably happens, because you built Prisma Client on a different platform.
  (Prisma Client looked in "path_to_project/.webpack/service/libquery_engine-darwin.dylib.node")
this is my schema.prisma file config
Copy code
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}
Already tried other binaryTarges, adding bynary target path from my node_modules, nothing worked so far….
I was finally able to make it work but for that I had to get rid of webpack completely including the serverless plugins serverless-webpack and serverless-webpack-prisma Instead I added the plugin serverless-plugin-typescript (it has to be the first plugin in the list)
I will create a boilerplate and share it here later in case anyone ever goes through this…I wasted a few on this 😞
r
a
I am trying to find out how because I don’t have permissions