P
Prisma5w ago
Bern

Can't prisma generate

D:\Blog>yarn prisma generate Environment variables loaded from .env Prisma schema loaded from prisma\schema.prisma Error: Could not resolve prisma and @prisma/client in the current project. Please install them with yarn add prisma -D and yarn add @prisma/client, and rerun yarn dlx "prisma generate" 🙏. installed yarn add prisma -D and yarn add @prisma/client but it still doesn't work
7 Replies
Prisma AI Help
Ahoy, knowledge seeker! I'm the Prisma AI Help Bot. Do you want a dev's response that might take a hot second, or an AI answer that's ready before your next coffee sip? Either way, your question is important to us.
Nurul
Nurul5w ago
Is this happening in latest prisma version? Does this error occur if you use any other package manager like npm, pnpm etc?
Bern
BernOP5w ago
yea im using 6.13 and tried using npm but it also doesnt work
Nurul
Nurul5w ago
Hmm, strange! Is your repository open source? I'll need to look at the code to check what's going on
Bern
BernOP5w ago
GitHub
GitHub - 83rnyyyy/Blog
Contribute to 83rnyyyy/Blog development by creating an account on GitHub.
Nurul
Nurul5w ago
I just ran npx prisma generate command and it worked as expected for me
No description
Bern
BernOP5w ago
should I delete all prisma related files and packages?

Did you find this page helpful?