Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

In a monorepo environment, Prisma generates into the prisma folder at service root, but when the PrismaClient instance is created, it tries to read the schema file in random subdirectories.

License

Notifications You must be signed in to change notification settings

0x77dev/prisma-datamodel-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prisma Client datamodel path ("schema.prisma") issue

In a monorepo environment, Prisma generates into the prisma folder at service root, but when the PrismaClient instance is created, it tries to read the schema file in random subdirectories.

That happened after upgrading Prisma to 3.x.

How to reproduce

yarn install
yarn reproduce

Related Issue

About

In a monorepo environment, Prisma generates into the prisma folder at service root, but when the PrismaClient instance is created, it tries to read the schema file in random subdirectories.

Topics

Resources

License

Stars

Watchers

Forks