nestjs-prisma-graphql-crud-gen icon indicating copy to clipboard operation
nestjs-prisma-graphql-crud-gen copied to clipboard

generator stucks without error and no generation

Open chrisLovesCode opened this issue 10 months ago • 7 comments

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 ?

chrisLovesCode avatar Aug 19 '23 14:08 chrisLovesCode

Getting the same thing

AaronMBMorse avatar Sep 29 '23 18:09 AaronMBMorse

same here!

ahmadatefahmad avatar Nov 27 '23 22:11 ahmadatefahmad

same here!

sun96013 avatar Dec 26 '23 03:12 sun96013

@mk668a Getting the same error. Can you please let us know what to do in this case ?

thinkcodeexecute avatar Jan 04 '24 11:01 thinkcodeexecute

@mk668a This is happening when we have relations accross tables and complex schema. It is failing and stuck at one place only.

thinkcodeexecute avatar Jan 05 '24 07:01 thinkcodeexecute

+1 it is broken

Mario2280 avatar May 09 '24 16:05 Mario2280

@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

Mario2280 avatar May 09 '24 18:05 Mario2280