cli generate not working: "Please run prisma generate"

Hi, I'm very new around better-auth and I need some help figuring out how to set it up properly. I have followed the instructions but for some reason I cannot seem to run the command npx @better-auth/cli generate. Gives me back an error that says "Please run "prisma generate" and try to import it again. However this has already been done and when I run the command it comes back to the same error.
8 Replies
🌠kkMihai ⚡
these should help you, first what you should check is if you have a output set in the schema file https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/generating-prisma-client
Generating Prisma Client | Prisma Documentation
This page explains how to generate Prisma Client. It also provides additional context on the generated client, typical workflows and Node.js configuration.
No description
Jacob | idohtml
Jacob | idohtmlOP2w ago
Hmm is that a must have since I have a driver adapter setup like this
// schema.prisma
generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
// schema.prisma
generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
🌠kkMihai ⚡
can you send the full console output?
Jacob | idohtml
Jacob | idohtmlOP2w ago
Hold on.. I have no clue on what happened but now it works 😐 I didn't change anything but for some reason it just works now I guess this issue solved itself?
🌠kkMihai ⚡
alright then lmao, magic fr
Jacob | idohtml
Jacob | idohtmlOP2w ago
Yes! You did some voodoo things and it worked for me
🌠kkMihai ⚡
telepathic
Jacob | idohtml
Jacob | idohtmlOP2w ago
While I have your help could you explain to me how the server actions work with next js or do I have to create a new ticket for that?

Did you find this page helpful?