-
Notifications
You must be signed in to change notification settings - Fork 112
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
glob
method errors in the latest release
#403
Comments
1 task
Sorry it's an update from my side. |
This was referenced Sep 9, 2024
This was referenced Sep 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Actual behavior
Getting the following error:
Expected behavior
No errors.
Steps to reproduce
We have a script to check if there is any defect in the generated TypeScript
.d.ts
build files. We usefast-glob
to traverse these build files. You can see the error in mui/material-ui#37789.Code sample
There is an error in the latest version 3.3.0 which you can see in this GitHub pull request: mui/material-ui#37789.
After some debugging and going through the stack trace, it appears that the error is caused by this line of code in the
processPatterns
function. TheprocessPatterns
function expects a pattern as its first argument (but here it issettings.ignore
), and the errorpattern.reduce() is not a function
occurs in theObject.expandPatternsWithBraceExpansion
function. ThebraceExpansion
option is set to true by default, triggering theexpandPatternsWithBraceExpansion
function. ButThe text was updated successfully, but these errors were encountered: