[go: nahoru, domu]

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

Prisma generate option --allow-no-models doesn't work. #24737

Closed
MansurAliKoroglu opened this issue Jul 9, 2024 · 1 comment
Closed

Prisma generate option --allow-no-models doesn't work. #24737

MansurAliKoroglu opened this issue Jul 9, 2024 · 1 comment
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. kind/bug A reported bug.
Milestone

Comments

@MansurAliKoroglu
Copy link
MansurAliKoroglu commented Jul 9, 2024

Bug description

npx prisma generate --allow-no-models doesn't work in v5.16. It works in v5.15

How to reproduce

Repository

https://github.com/MansurAliKoroglu/prisma-bug

Steps

  • Run npm i to install packages.
  • Run npx prisma generate --allow-no-models and see it doesn't work
  • Edit package.json file and change prisma packages to version 5.15.0
  • Run npm i to install packages.
  • Run npx prisma generate --allow-no-models and see it works.

Expected behavior

It should work in v5.16 too.

Prisma information

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "sqlite"
  url      = env("DATABASE_URL")
}

No code needed.

Environment & setup

OS: Kubuntu 22.04
Node: 20.15.0

Prisma Version

5.16

@MansurAliKoroglu MansurAliKoroglu added the kind/bug A reported bug. label Jul 9, 2024
@jkomyno jkomyno self-assigned this Jul 9, 2024
@jkomyno jkomyno added bug/2-confirmed Bug has been reproduced and confirmed. domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. labels Jul 9, 2024
@jkomyno jkomyno added this to the 5.17.0 milestone Jul 9, 2024
@jkomyno
Copy link
Contributor
jkomyno commented Jul 10, 2024

Hi @MansurAliKoroglu, thanks for informing us about this issue.
I've fixed this regression in #24741, and added more tests to avoid similar issues in the future.
This fix will be part of next week's stable release, Prisma 5.17.0.

Cheers 👋🏻

@jkomyno jkomyno closed this as completed Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. kind/bug A reported bug.
Projects
None yet
Development

No branches or pull requests

2 participants