-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Patched fs
doesn't account for the __virtual__
folder and its immediate children
#2959
Comments
This issue reproduces on master:
|
I'm not sure it's a bug, more like a limitation - the folder doesn't really exist, so it probably shouldn't be returned. Even if we could, there's by design an infinity of possible virtual paths, which couldn't be represented on the disk. We potentially could only show those that are in the PnP map, but it remains to see how much complexity it would add 🤔 |
Wanted to add that this is a blocker for using modern tools like Vite which depend on chokidar to watch for any changes in linked packaged. |
+1 on this. I've used pnp for more than a year and this is one of the bugs that keep frustrated me. |
This issue has been interfering with the operation of Vite since version 5.1.0 vitejs/vite#15910 (comment) There is a workaround, but it seems that this problem should be fixed on the yarn side. |
Describe the bug
The result of calling
fs.readdir
on<pwd>/.yarn
doesn't include__virtual__
and its immediate children making libraries likechokidar
unable to detect changes to virtual files (read: workspaces with peer dependencies)To Reproduce
Reproduction
Environment if relevant (please complete the following information):
The text was updated successfully, but these errors were encountered: