skinny-azureS
Refine2y ago
33 replies
skinny-azure

How to solve "Module 'X' has no exported member 'Y'" error, but in a pnpm monorepo?

Hi all,
I've come to a common issue where the types when exporting members isn't showing correctly (as seen in attached), and the usual npm solution does work (if I remove pnpm as the package manager).

However, the project setup I have is a pnpm monorepo, so that solution doesn't work unfortunately. Is there another workaround or do I have to change the whole project's package manager (cause pnpm is better than npm for monorepos)?
CleanShot_2024-01-14_at_11.29.28.png
Was this page helpful?