-
-
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]: readdir
implementations don't accept null
as second argument
#3234
Comments
This issue reproduces on master:
|
Thanks for this - I've just run in to this issue. Out of curiosity, do you know when this will be published as a new version of yarn? |
I just triggered a release (https://github.com/yarnpkg/berry/actions/runs/1116604206) so it should be ready in about 15 minutes, then you can run the following command to get the fix
|
@merceyz the upload of release is failed... |
That's a known issue with the publish to the registry, the release itself was successful so the command in #3234 (comment) is still the solution |
Thanks |
I had the same error with my personal website this afternoon when migrating to yarn berry (w/ zero installs & plug & play). Specifically, the app had a Github Action which was executing a I was able to fix the issue the same way as @rtritto. After setting yarn version to canary and rerunning Thanks for this issue! Really saved me some time. |
For anyone coming up on this in the future, I fixed this by upgrading from yarn v3.0.0 by running |
Any chance this could be back-ported to 2.4.x for those of us stuck on Node v10? |
Self-service
Describe the bug
The
readdir
implementations in@yarnpkg/fslib
don't acceptnull
as the second argument (which is supported by Node) and throw a cryptic:To reproduce
Environment
Additional context
There are likely other methods inside
@yarnpkg/fslib
that should acceptnull
but don't.The text was updated successfully, but these errors were encountered: