An open API service indexing awesome lists of open source software.

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.

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)