chore: add known issue notes for prisma

This commit is contained in:
Supan Adit Pratama 2025-05-06 20:16:18 +07:00
parent d8a0623763
commit 97be7b8f7c

View File

@ -35,6 +35,30 @@ Nest Auto CRUD is a library that provides a set of modules, decorator, service,
$ npm install @aditama-labs/nest-autocrud $ npm install @aditama-labs/nest-autocrud
``` ```
## Known Issue for Prisma User
### Default Generated Schema ( First Setup Project )
Please remove `output` from your first generated prisma schema or you can't running the backend because `nest-autocrud` cannot find it, so instead it will stored in `node_modules`.
```prisma
generator client {
provider = "prisma-client-js"
// This `output` property should be removed
output = "../generated/prisma"
}
```
### This is fixed version of the schema
```prisma
generator client {
provider = "prisma-client-js"
}
```
In summary you must delete `output` property from the schema
## Example ## Example
### Environment Variable ### Environment Variable