-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Bug description
I'm using a custom schema location and custom prisma client location. And it's failing.
- Schema:
db/schema.prisma - Client:
db/.generated-prisma-client
(node:1879) UnhandledPromiseRejectionWarning: Error: Query 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")
Files in /:
.DS_Store
.VolumeIcon.icns
.file
.fseventsd
.vol
Applications
Library
Preboot
System
Users
Volumes
bin
cores
dev
etc
home
opt
private
sbin
tmp
usr
var
You already added the platform "native" to the "generator" block
in the "schema.prisma" file as described in https://pris.ly/d/client-generator,
but something went wrong. That's suboptimal.
Please create an issue at https://github.com/prisma/prisma-client-js/issues/new
How to reproduce
- Check out [legacy-framework] Generate prisma client into project instead of node_modules blitz-js/blitz#124:
git clone -b prisma-gen git@github.com:blitz-js/blitz.git yarnyarn buildcd examples/store- Set your
DATABASE_URLenvironment variable for postgres yarn blitz db migrateyarn blitz start- Open http://localhost:3000/admin/products
- See error in console.
Expected behavior
Should work
Environment & setup
- OS: macOS
- Database: PostgreSQL
- Prisma version: 2.0.0-alpha.1081"
- Node.js version: 12.6.1
Reactions are currently unavailable