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

types directory empty after running npx prisma generate in the usage project #321

Open
the-real-adammork opened this issue May 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@the-real-adammork
Copy link

Bug description

Fresh "create" with no changes does not output any files to the types directory. The directory is created, but no files within after a generate.

To Reproduce

Screenshot for prompt questions answers:

run the "create" flow on macOS then:

❯ cd packages/usage
❯ git log
commit ed3d8e4e830f8ed413604af4a3c710e09d329929 (HEAD -> main)
Author: Adam Mork <[email protected]>
Date:   Sat May 13 19:42:43 2023 -0600

    feat: added husky for safety commit-msg

commit 4b005bd347a2bc22bf86a65c3484c1e01a31a968
Author: Adam Mork <[email protected]>
Date:   Sat May 13 19:42:42 2023 -0600

    init
❯ pwd
/Users/adam/Projects/pntmnt/prisma-generator-types-test/packages/usage
❯ npx prisma generate
Prisma schema loaded from prisma/schema.prisma
prisma:info prisma-generator-types-test:Registered

✔ Generated prisma-generator-types-test (1.0.0) to ./types in 4ms

┌─────────────────────────────────────────────────────────┐
│  Update available 3.12.0 -> 4.14.0                      │
│                                                         │
│  This is a major update - please follow the guide at    │
│  https://pris.ly/d/major-version-upgrade                │
│                                                         │
│  Run the following to update                            │
│    npm i --save-dev prisma@latest                       │
│    npm i @prisma/client@latest                          │
└─────────────────────────────────────────────────────────┘
❯ gs
# On branch: main  |  No changes (working directory clean)

Expected behavior

files in the types directory

Environment & setup

  • OS: macos ventura 13.0
  • Node.js version:
❯ npx --version
9.5.0
@erik-metz
Copy link

facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants