From 97be7b8f7c92589e1cfa901a697803feaf1e0675 Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama <email@supanadit.com> Date: Tue, 6 May 2025 20:16:18 +0700 Subject: [PATCH] chore: add known issue notes for prisma --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 1a73dc3..c5afe2d 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,30 @@ Nest Auto CRUD is a library that provides a set of modules, decorator, service, $ 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 ### Environment Variable