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
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.
Is this happening in latest prisma version?
Does this error occur if you use any other package manager like npm, pnpm etc?
yea im using 6.13 and tried using npm but it also doesnt work
Hmm, strange!
Is your repository open source?
I'll need to look at the code to check what's going on
GitHub
GitHub - 83rnyyyy/Blog
Contribute to 83rnyyyy/Blog development by creating an account on GitHub.
I just ran
npx prisma generate
command and it worked as expected for me
should I delete all prisma related files and packages?