-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (0) #1316
Comments
Please post your debug logs by running lint-staged with the |
As you're using |
|
Thanks for the details! I can confirm it's broken in v14. This feature had no tests and unfortunately I glossed over it. Can you try if the linked PR #1317 fixes it; it does for me locally. |
Well, I wrote some integration tests and everything seems good, so I'll release v14.0.1 for this fix. Thanks again for the report! |
Description
get error:
https://github.com/okonet/lint-staged/blob/9da877711a7547b9122c6af91683fb2a2f398184/bin/lint-staged.js#L113
fs/promises is not support file descriptor
Steps to reproduce
exec:
echo '{"*.*":["eslint --fix"]}' | npx lint-staged -c -
Debug Logs
expand to view
Environment
lint-staged
: v14.0.0The text was updated successfully, but these errors were encountered: