Skip to content
Discussion options

You must be logged in to vote

I tried many solutions, one (that worked) is:

Install WSL (Ubuntu) and delete node_modules and .next and add following in your schema.prisma:

generator client {
provider	= "prisma-client-js"
output		= "../lib/generated/prisma"
binaryTargets	= ["native", "debian-openssl-3.0.x"]
}

and run

pnpm install
pnpm build
pnpm prisma generate

in WSL. prisma generate is important otherwise it will throw error:

This happened because Prisma Client was generated for "windows", but the actual deployment required "debian-openssl-3.0.x".

Note:

Running that in admin Terminal won't work.

Replies: 10 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Ali1raz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Ali1raz
Comment options

Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Ali1raz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Ali1raz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
10 participants