QuestionI have a problem with my Prisma setup. I have two schemas and I want to generate two clients. The issue arises when I run yarn dev. It creates the dist folder without the generated folder, resulting in the following error: php How to reproduce (optional)Expected behavior (optional)No response Information about Prisma Schema, Client Queries and Environment (optional)// Add your schema.prisma// Add any relevant Prisma Client queries here
|
Replies: 1 comment
|
Hi @simibruda 👋 Thank you for raising this question. How did you define your Are you also correctly importing the Prisma Client? You will need to change the import path from import { PrismaClient } from '@prisma/client'
to
import { PrismaClient } from '../prisma/generated/xxxx' where xxxx represents any path you're using.You may also want to take a look at this workaround described in this similar issue. |


Hi @simibruda 👋
Thank you for raising this question.
How did you define your
postinstallscript? Does it look like the below:Are you also correctly importing the Prisma Client? You will need to change the import path from
You may also want to take a look at this workaround described in this similar issue.