-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
"Cannot read directory" error after upgrading beyond 0.8.42 #816
Comments
@evanleck
In other words, verify your assumption that |
@adamhp good call, it exists and there's an executable in that directory. The error is complaining that
|
I'd give the classic Microsoft fix a shot:
Or whatever the equivalent of a reinstall node_modules is—I'm not super familiar with I just did the following with no issues, so I doubt it is related to the latest version.
Edit:
|
@adamhp yup, I already tried running |
The change in 0.8.43 that seems the most suspicious is the change to follow multiple levels of symlinks. Do you have instructions that would let me reproduce this? I tried using a similar command but it works for me. Also, what operating system are you using? |
@evanw I know pnpm uses hard links to its shared store so maybe something funky's happening there. I'm on Fedora 33 kernel 5.10.15-200.fc33.x86_64 with Node.js version 14.15.5, pnpm 5.17.2, and npm 7.5.4. Let me see if I can't get you a standalone reproduction, right now I can only reproduce it in a private repository. |
@evanw mind if I shoot you an email with the code that's producing the error? It's not open source so I'd rather not share it publicly but it's not exactly top secret either haha |
Sure thing. Thanks for offering. |
Just had time to look into this. Looks like this was actually due to the
The problematic path is A workaround for now could be to invoke esbuild directly instead of going through -pnpx esbuild $(ESBUILD_OPTIONS)
+./node_modules/esbuild/bin/esbuild $(ESBUILD_OPTIONS) This bypasses the shim file in |
@evanw thanks so much for figuring that out and working around it! I've filed an issue with pnpm as well and am referencing your comment above. pnpm/pnpm#3156 |
@evanw thanks so much for this - removing the |
The full error is:
I use pnpm and its
npx
equivalentpnpx
to executeesbuild
like this:This error occurs starting with 0.8.43 and is still happening with 0.8.46.
The text was updated successfully, but these errors were encountered: