Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator stucks without error and no generation #142

Open
chrisLovesCode opened this issue Aug 19, 2023 · 7 comments
Open

generator stucks without error and no generation #142

chrisLovesCode opened this issue Aug 19, 2023 · 7 comments

Comments

@chrisLovesCode
Copy link

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 ?

@AaronMBMorse
Copy link

Getting the same thing

@ahmadatefahmad
Copy link

same here!

1 similar comment
@sun96013
Copy link

same here!

@thinkcodeexecute
Copy link

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

@thinkcodeexecute
Copy link

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

@Mario2280
Copy link

+1 it is broken

@Mario2280
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants