-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 property 'length' of undefined #3512
Comments
I tried locking
Error has gone. |
Reported upstream: mrmlnc/fast-glob#253 |
@anilanar Thank you. You saved me a lot of time |
@anilanar Thank you for reporting and finding a workaround! |
@anilanar thank you, you saved my day. For those who use npm, I found this plugin to use "resolutions" as workaround: https://www.npmjs.com/package/npm-force-resolutions |
TL;DR We are waiting for a fix by @dotansimha It's kind of hard to reproduce. I had to copy my own The specific problem is described in micromatch/micromatch#196 and in mrmlnc/fast-glob#253. So the problem only happens if |
It seems like |
My conclusion
This seems to be an issue with deep network of dependencies:
globby -> fast-glob -> micromatch
. At the top of the stack trace,fast-glob
calls a function frommicromatch
:If you
console.log(info)
, it has noparts
property:The
micromatch
version that causes the bug is4.0.2
.The
fast-glob
version that causes the bug is3.2.0
.The
globby
version that causes the bug is11.0.0
.So basically, this problem happens when everything is on their latest version.
Describe the bug
To Reproduce
Steps to reproduce the behavior:
https://codesandbox.io/s/vibrant-fire-f0x5p
codegen.yml
config file:Expected behavior
No error.
Environment:
"@graphql-codegen/cli": "1.12.2"
"@graphql-codegen/introspection": "1.12.2"
"@graphql-codegen/typescript": "1.12.2"
"@graphql-codegen/typescript-document-nodes": "1.12.2"
"@graphql-codegen/typescript-graphql-files-modules": "1.12.2"
"@graphql-codegen/typescript-resolvers": "1.12.1"
Additional context
The text was updated successfully, but these errors were encountered: