Entity types cannot be resolved in PNPM monorepo #99
Labels
generator
Related to the Prisma generator part of Nexus Prisma
needs/discussion
Something needs deciding, new info changes issue scope/spec, unforeseen challenges, etc.
type/bug
Something is not working the way it should
I'm having trouble running nexus-prisma in PNPM monorepo. I have two packages
users
&posts
, when I run the commandprisma run generate
,nexus-prisma
get resolved at the root directory instead of the package directory. Which causes entity types cannot be resolved as they got overwritten.What should be expected is the generated output should be at the package node_modules level instead of the root directory, like
@prisma/client
in the screenshot below.Screenshot
It's a similar issue to this one for Prisma: prisma/prisma#7484
The text was updated successfully, but these errors were encountered: