https://github.com/0x77dev/prisma-datamodel-path
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.
https://github.com/0x77dev/prisma-datamodel-path
bug prisma reproduce
Last synced: 8 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/0x77dev/prisma-datamodel-path
- Owner: 0x77dev
- License: mit
- Archived: true
- Created: 2021-11-29T15:27:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T19:41:36.000Z (almost 3 years ago)
- Last Synced: 2025-03-05T03:44:42.017Z (10 months ago)
- Topics: bug, prisma, reproduce
- Language: TypeScript
- Homepage: https://github.com/prisma/prisma/issues/10512
- Size: 663 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```shell
yarn install
yarn reproduce
```
[Related Issue](https://github.com/prisma/prisma/issues/10512)