studio
studio copied to clipboard
Error: Error starting Prisma Client
Bug description
Error starting Prisma Client: {
"message": "\nYou don't have any \u001b[1mmodels\u001b[22m defined in your \u001b[1mschema.prisma\u001b[22m, so nothing will be generated.\nYou can define a model like this:\n\n\u001b[1m\u001b[36mmodel User\u001b[39m \u001b[34m{\u001b[39m\n id\u001b[1m\u001b[34m Int\u001b[39m\u001b[22m\u001b[1m \u001b[36m@id @default(autoincrement())\u001b[39m\n email\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m \u001b[36m@unique\u001b[39m\n name\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m?\n\u001b[34m}\u001b[39m\u001b[22m\n\nMore information in our documentation:\n\u001b[4mhttps://pris.ly/d/prisma-schema\u001b[24m\n",
"stack": "\nYou don't have any \u001b[1mmodels\u001b[22m defined in your \u001b[1mschema.prisma\u001b[22m, so nothing will be generated.\nYou can define a model like this:\n\n\u001b[1m\u001b[36mmodel User\u001b[39m \u001b[34m{\u001b[39m\n id\u001b[1m\u001b[34m Int\u001b[39m\u001b[22m\u001b[1m \u001b[36m@id @default(autoincrement())\u001b[39m\n email\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m \u001b[36m@unique\u001b[39m\n name\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m?\n\u001b[34m}\u001b[39m\u001b[22m\n\nMore information in our documentation:\n\u001b[4mhttps://pris.ly/d/prisma-schema\u001b[24m\n"
}
Error: Error starting Prisma Client: {
"message": "\nYou don't have any \u001b[1mmodels\u001b[22m defined in your \u001b[1mschema.prisma\u001b[22m, so nothing will be generated.\nYou can define a model like this:\n\n\u001b[1m\u001b[36mmodel User\u001b[39m \u001b[34m{\u001b[39m\n id\u001b[1m\u001b[34m Int\u001b[39m\u001b[22m\u001b[1m \u001b[36m@id @default(autoincrement())\u001b[39m\n email\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m \u001b[36m@unique\u001b[39m\n name\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m?\n\u001b[34m}\u001b[39m\u001b[22m\n\nMore information in our documentation:\n\u001b[4mhttps://pris.ly/d/prisma-schema\u001b[24m\n",
"stack": "\nYou don't have any \u001b[1mmodels\u001b[22m defined in your \u001b[1mschema.prisma\u001b[22m, so nothing will be generated.\nYou can define a model like this:\n\n\u001b[1m\u001b[36mmodel User\u001b[39m \u001b[34m{\u001b[39m\n id\u001b[1m\u001b[34m Int\u001b[39m\u001b[22m\u001b[1m \u001b[36m@id @default(autoincrement())\u001b[39m\n email\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m \u001b[36m@unique\u001b[39m\n name\u001b[1m\u001b[34m String\u001b[39m\u001b[22m\u001b[1m?\n\u001b[34m}\u001b[39m\u001b[22m\n\nMore information in our documentation:\n\u001b[4mhttps://pris.ly/d/prisma-schema\u001b[24m\n"
}
at qs.init (http://localhost:5555/assets/index.js:1:82961)
How to reproduce
Expected behavior
No response
Prisma information
Environment & setup
- OS:
- Browser:
- Database:
Prisma logs
No response
You should define some models in your schema.prisma
file.