P
Prisma3mo ago
Hamid

No models defined

Hi everyone ... I'm following the quickstart from here https://www.prisma.io/docs/getting-started/quickstart and getting this error You don't have any models defined in your schema.prisma, so nothing will be generated. Schema is definitely there and has a model defined.
Quickstart with TypeScript & SQLite | Prisma Documentation
Get started with Prisma ORM in 5 minutes. You will learn how to send queries to a SQLite database in a plain TypeScript script using Prisma Client.
2 Replies
RaphaelEtim
RaphaelEtim3mo ago
Hi @Hamid 👋 Where are you running npx prisma generate? Where is your schema.prisma file located in your directory?
Hamid
Hamid3mo ago
I basted it away and it worked.