nestjs-prisma-graphql-crud-gen
nestjs-prisma-graphql-crud-gen copied to clipboard
generator stucks without error and no generation
hey,
all my depenencies (prisma, nestjs,...) are at @latest , node is latest lts
in my console:
root@a3b11efbd3a4:/api# npx prisma generate
Environment variables loaded from prisma/.env
Prisma schema loaded from prisma/schema.prisma
prisma:info nestjs-prisma-graphql-crud-gen:Registered
// NOTHING HAPPENS, it just stucks and nothing is generated from the crud gen
my schema.prisma config
generator client {
provider = "prisma-client-js"
}
generator nestgraphql {
provider = "node node_modules/prisma-nestjs-graphql"
output = "../src/@generated/dto"
noAtomicOperations = true
fields_Validator_from = "class-validator"
fields_Validator_input = true
}
generator crudgenerator {
provider = "node node_modules/nestjs-prisma-graphql-crud-gen"
output = "../src/@generated/crud"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
what i have tryed, but didn't work either, write config like in the official example this:
generator custom_generator {
provider = "nestjs-prisma-graphql-crud-gen"
output = "../src/generated"
}
I also diabled the nestgraphql called generator, but no change Any options to get a debug/log ?
Getting the same thing
same here!
same here!
@mk668a Getting the same error. Can you please let us know what to do in this case ?
@mk668a This is happening when we have relations accross tables and complex schema. It is failing and stuck at one place only.
+1 it is broken
@mk668a This is happening when we have relations accross tables and complex schema. It is failing and stuck at one place only.
i removed all relations and nothing change