PrismaP
Prisma2y ago
1 reply
dka

Cannot generate prisma client in monorepo

I am in the middle of upgrade to yarn v1 to yarn v4 as I was struggling with the linking of dependency using lerna v1.

Since, I am unable to generate my prisma client, and the erreor is very (very) broad.

I have been following all the advices from GitHub to the discord bot here.

I have already created a new project and move my code little by little, this is kind of a dead end for me and my project.

Can anyone enlight me about that error ?


Thanks

prisma:generator prismaCLIDir undefined +16083ms
prisma:generator prismaClientDir undefined +0ms
Error: Error: Could not resolve @prisma/client despite the installation that we just tried.
Please try to install it by hand with yarn add @prisma/client and rerun yarn dlx "prisma generate" 🙏.
    at Object.Fse [as prisma-client-js] (/private/var/folders/kr/zw6gf805145bj7ggnw_cbvkh0000gn/T/xfs-21152927/dlx-20813/.yarn/unplugged/prisma-npm-5.16.1-d98cf1849b/node_modules/prisma/build/index.js:414:4463)
    at async Qo.e.stopOnError (/private/var/folders/kr/zw6gf805145bj7ggnw_cbvkh0000gn/T/xfs-21152927/dlx-20813/.yarn/unplugged/prisma-npm-5.16.1-d98cf1849b/node_modules/prisma/build/index.js:420:1905)
    at async /private/var/folders/kr/zw6gf805145bj7ggnw_cbvkh0000gn/T/xfs-21152927/dlx-20813/.yarn/unplugged/prisma-npm-5.16.1-d98cf1849b/node_modules/prisma/build/index.js:19:752
Was this page helpful?