Incorrectly resolve @types/react in transitive deps using virtual-store-dir
Author: DudaGodCreated Nov 17, 2022Updated Sep 26, 2026
Labelstype: bugpriority: 2
I'm not quite sure that the problem with pnpm and not with resolve modules in typescript.
pnpm version:
7.16.1
Code to reproduce the issue:
https://github.com/DudaGod/pnpm-react-issue
Expected behavior:
Using virtual-store-dir does not lead to crash build ts components. In that case imports in transitive deps works incorrectly
Actual behavior:
Build of ts modules fails.
Additional information:
node -vprints: 16.16.0- Windows, macOS, or Linux?: MacOS
Source: pnpm/pnpm