PrismaP
Prisma10mo ago
6 replies
undefined

Schema could not be found after Prisma 6.6.0 update

Before 6.6.0, prisma generate was working completely fine. Now, it isn't able to find the schema file located in ./prisma/schema/schema.prisma

I tried running the command with --schema to specify the location, and then the following is the result of that:
Environment variables loaded from .env
Prisma schema loaded from prisma\schema\schema.prisma
Error: 
You don't have any models defined in your schema.prisma, so nothing will be generated.
You can define a model like this:

model User {
  id    Int     @id @default(autoincrement())
  email String  @unique
  name  String?
}


The following is my schema.prisma:
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["driverAdapters", "prismaSchemaFolder"]
}

datasource db {
  provider  = "postgresql"
  url       = env("DATABASE_URL")
  directUrl = env("DIRECT_URL")
}


This completely broke Prisma for me and it was working completely fine before this. @prisma/client and prisma are both at version 6.6.0.

Any help would be much appreciated.
Was this page helpful?