Strange error in turborepo pnpm workspaces

3 Replies
kapa.ai
kapa.ai4w ago
Hi @1481. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources provided, it appears that there have been some issues with pnpm workspaces and refine projects. While I don't have specific information about turborepo, I can share some relevant insights about pnpm-related errors in refine projects: Several users have reported issues when using pnpm with refine, particularly in monorepo or workspace setups. These issues often manifest as compilation errors or missing dependencies. Here are some key points and potential solutions: 1. Package resolution: pnpm's cache system can sometimes cause issues with module resolution. This can lead to errors like "Module 'X' has no exported member 'Y'" Refine FAQ. 2. Workarounds: - Using npm instead of pnpm has resolved issues for some users Github Issue #1536. - Running pnpm store prune to clear the pnpm store cache might help Github Issue #4921. - Manually installing dependencies with pnpm install --force has worked in some cases Github Issue #4921. 3. Peer dependencies: The refine team is aware of issues related to peer dependencies and is working on improving their management Github Issue #4439. 4. Version conflicts: Ensure that all refine packages are updated to their latest versions, as this has resolved issues for some users Github Issue #4921. If you're encountering a specific error message or behavior, it would be helpful to know more details to provide a more targeted solution. In general, if you're facing persistent issues with pnpm in a refine project, consider trying npm as a temporary workaround while the refine team continues to improve compatibility with pnpm. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4w ago
<@294831742177509376> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
itchy-amethyst
itchy-amethystOP4w ago
 WARN  Issues with peer dependencies found
admin-dashboard
├─┬ @refinedev/core 4.57.5
│ └── ✕ unmet peer @tanstack/react-query@^4.10.1: found 5.62.8
└─┬ @refinedev/kbar 1.3.14
└─┬ kbar 0.1.0-beta.45
└─┬ react-virtual 2.10.4
└── ✕ unmet peer react@"^16.6.3 || ^17.0.0": found 18.3.1

mini-app
└─┬ react-day-picker 8.10.1
└── ✕ unmet peer date-fns@"^2.28.0 || ^3.0.0": found 4.1.0
 WARN  Issues with peer dependencies found
admin-dashboard
├─┬ @refinedev/core 4.57.5
│ └── ✕ unmet peer @tanstack/react-query@^4.10.1: found 5.62.8
└─┬ @refinedev/kbar 1.3.14
└─┬ kbar 0.1.0-beta.45
└─┬ react-virtual 2.10.4
└── ✕ unmet peer react@"^16.6.3 || ^17.0.0": found 18.3.1

mini-app
└─┬ react-day-picker 8.10.1
└── ✕ unmet peer date-fns@"^2.28.0 || ^3.0.0": found 4.1.0
how do I solve it?

Did you find this page helpful?