bill92
bill92
Explore posts from servers
PPrisma
Created by bill92 on 5/22/2024 in #help-and-questions
`PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime` error
I'm having an error when trying to bundle my application with ts up
PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "darwin-arm64".

This is likely caused by a bundler that has not copied "libquery_engine-darwin-arm64.dylib.node" next to the resulting bundle.
Ensure that "libquery_engine-darwin-arm64.dylib.node" has been copied next to the bundle or in "packages/api/dist".

We would appreciate if you could take the time to share some information with us.
Please help us by answering a few questions: https://pris.ly/engine-not-found-bundler-investigation
PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "darwin-arm64".

This is likely caused by a bundler that has not copied "libquery_engine-darwin-arm64.dylib.node" next to the resulting bundle.
Ensure that "libquery_engine-darwin-arm64.dylib.node" has been copied next to the bundle or in "packages/api/dist".

We would appreciate if you could take the time to share some information with us.
Please help us by answering a few questions: https://pris.ly/engine-not-found-bundler-investigation
7 replies
PPrisma
Created by bill92 on 4/7/2024 in #help-and-questions
Monorepo setup: Prisma with NestJS
I currently have a postgres database that uses row level security. This database is used by two services that are built with NestJS. - auth service - core service In order to interact correctly with the database and RLS, I need to use these two services with a different database account so that it can bypass RLS. (auth service needs to bypass) Here is where the monorepo setup comes to play, I want to implement a monorepo with 4 packages: - db (prisma) - auth service (nestjs) - core service (nestjs) - web (next js app) The idea is that both auth and core can connect to the same database using a different username, I was thinking on passing a different DATABASE_URL when starting the service. Has anyone done this approach or can share how to do so? I did not find anything on the documentation and would like a but of guidance please
1 replies