berry icon indicating copy to clipboard operation
berry copied to clipboard

[Bug?]: vite + windows + global cache = errors

Open mcenkar opened this issue 1 year ago • 1 comments

Self-service

  • [ ] I'd be willing to implement a fix

Describe the bug

Hi,

description available at https://github.com/vitejs/vite/issues/15854 where I previously filed bug thinking it's vite issue.

Basically with specific setup it's impossible to use global cache in yarn on windows.

Please look at https://github.com/vitejs/vite/issues/15854#issuecomment-1937805701 where @sapphi-red points to specific yarn function.

To reproduce

https://github.com/vitejs/vite/issues/15854 / repo: https://github.com/mcenkar/vite-15801/

Steps to reproduce:

  • checkout mentioned repo to D:\Company\Workspace\vite-15801 folder,
  • in project's .yarnrc.yml add entry: globalFolder: "d:/Company/Workspace/programs/.yarn/Berry/"
  • yarn
  • yarn dev

Environment

NA

Additional context

No response

mcenkar avatar Feb 12 '24 14:02 mcenkar

I have the same problem. Please take some time to solve it. Thank you.

cakehuang avatar Feb 23 '24 08:02 cakehuang

i have same problem

rmd1710714107 avatar Feb 29 '24 01:02 rmd1710714107