Skip to content

Bug: Not files being output as a result of running the generator #138

@hamzaaftab

Description

@hamzaaftab

Bug description

Running the generator after following the instructions results in no files being output. I have attached a public repository that hows a simple Prisma schema (copied from Prisma's getting started tutorial).

To Reproduce

Steps to reproduce the behavior:

  1. Checkout https://github.com/hamzaaftab/prisma-tgql-types-gen-bug
  2. Add DATABASE_URL = "" in .env to somewhere you host your DB
  3. Run "npx prisma migrate dev"
  4. See that models/ directory is generated but no files are inside it

Expected behavior

models/ directory should have a file per table

Prisma information

https://github.com/hamzaaftab/prisma-tgql-types-gen-bug/blob/main/prisma/schema.prisma

Environment & setup

  • OS: Macos
  • Database: PostgreSQL
  • Node.js version: v18.12.1

Prisma Version

4.8.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions