Entity types cannot be resolved in PNPM monorepo #7484
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: monorepo
topic: pnpm
Milestone
Bug description
In a monorepo with PNPM workspace,
@prisma/client
is resolved to the<monorepo_rootdir>/node_modules
rather than thenode_modules
under the project which depends on Prisma directly.For example:
@prisma/client
is resolved toProjectRoot/node_modules
rather thanpackages/server/node_modules
, which causes entity types cannot be resolved:How to reproduce
I setup a tiny monorepo https://github.com/Yaojian/prisma-monorepo .
Expected behavior
No response
Prisma information
see the github source
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: