prisma / studio

🎙️ The easiest way to explore and manipulate your data in all of your Prisma projects.
https://www.prisma.io/studio
1.87k stars 48 forks source link

First time start Prisma studio and error occurred #1245

Closed developwitheddy closed 3 months ago

developwitheddy commented 4 months ago

Bug description

First time start Prisma studio and error occurred

How to reproduce

Expected behavior

No response

Prisma information

Environment & setup

Prisma logs

Error starting Prisma Client: {
  "message": "\nYou don't have any models defined in your schema.prisma, so nothing will be generated.\nYou can define a model like this:\n\nmodel User {\n  id    Int     @id @default(autoincrement())\n  email String  @unique\n  name  String?\n}\n\nMore information in our documentation:\nhttps://pris.ly/d/prisma-schema\n",
  "stack": "\nYou don't have any models defined in your schema.prisma, so nothing will be generated.\nYou can define a model like this:\n\nmodel User {\n  id    Int     @id @default(autoincrement())\n  email String  @unique\n  name  String?\n}\n\nMore information in our documentation:\nhttps://pris.ly/d/prisma-schema\n"
}
Error: Error starting Prisma Client: {
  "message": "\nYou don't have any models defined in your schema.prisma, so nothing will be generated.\nYou can define a model like this:\n\nmodel User {\n  id    Int     @id @default(autoincrement())\n  email String  @unique\n  name  String?\n}\n\nMore information in our documentation:\nhttps://pris.ly/d/prisma-schema\n",
  "stack": "\nYou don't have any models defined in your schema.prisma, so nothing will be generated.\nYou can define a model like this:\n\nmodel User {\n  id    Int     @id @default(autoincrement())\n  email String  @unique\n  name  String?\n}\n\nMore information in our documentation:\nhttps://pris.ly/d/prisma-schema\n"
}
    at qs.init (http://localhost:5555/assets/index.js:1:82961)
janpio commented 4 months ago

You don't have any models defined in your schema.prisma, so nothing will be generated and Prisma Studio will not work.