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: Cannot read property 'length' of undefined #1768
Comments
Same here, the error seems to be triggered by any |
+1 Same error here, anyone found a workaround? |
Nope, try to debugging, but no idea. The error appears this morning after I cleaned all my node_modules repo and made a |
Same here, debugging. gulp 3.9.1, node 4.5.0 LTS on OS X 10.11.6 |
+1 same problem windows os seems has not this problem. |
I got WARNS in my logs of
|
Same here:
Triggered by the call |
Also hitting it in the build of Microsoft/vscode. Seems to have been due to some npm dependency update... |
I can confirm this, even with an empty task:
|
I'm guessing everyone with publish access to npm is asleep, but if we can figure out which dependency has broken, you can install the old version manually in your root package.json and gulp will use the old version, instead of the new version. Out of interest, is anyone having this problem with gulp 4? @enna: unrelated |
vinyl-fs dependency in gulp 3.9.1 is ^0.3.0.
verify with npm ls vinyl-fs Seems to be a glob2base issue, and there's a pull there https://github.com/contra/glob2base/pull/9/files |
I see another strange thing. From today, if I log a simple config array, I got "Circular" instead of simple array of strings { js:
{ src: [ [Circular] ],
watch: [ [Circular] ],
dest: 'web/public/build/js',
filename: 'bundle.js' },
css:
{ src:
[ 'node_modules/normalize.css/normalize.css',
'node_modules/jquery-bar-rating/dist/themes/css-stars.css',
'web/public/src/sass/client.scss' ],
watch: [ [Circular] ],
dest: 'web/public/build/css',
filename: 'bundle.css' },
app: { watch: [ 'web/**/*', '!web/public/**/*' ] } } Instead of {
js: {
src: [
'web/public/src/js/client.js'
],
watch: [
'web/public/src/js/**/*.@(js|json|html)'
],
dest: 'web/public/build/js',
filename: 'bundle.js'
},
css: {
src: [
'node_modules/normalize.css/normalize.css',
'node_modules/jquery-bar-rating/dist/themes/css-stars.css',
'web/public/src/sass/client.scss'
],
watch: [
'web/public/src/**/*.scss'
],
dest: 'web/public/build/css',
filename: 'bundle.css'
},
app: {
watch: [
'web/**/*',
'!web/public/**/*'
]
}
} |
@sulmanen's fix didn't work for me |
@sulmanen: Given that there haven't been any recent updates to it or any or its single dependency, I doubt it's an issue with that module |
@callumacrae you're right, seems more like a symptom. |
@joshbalfour it's a bit hackish but my ci is running now. Verify with npm ls vinyl-fs |
@sulmanen I've verified and am still seeing the issue, will be interested to see the results of your CI
|
(my bad, wrong button) |
I am having the same problem from a couple of hours ago. I don't know how to fix this, any good news? |
It seems a issue about Minimatch {
options:
{ read: true,
buffer: true,
cwd: '/home/cfeeling/Projects/frontend-web',
dot: false,
silent: true,
nonull: false,
cwdbase: false },
set: [],
pattern: '/home/cfeeling/Projects/frontend-web/build',
regexp: null,
negate: false,
comment: false,
empty: false,
globSet: [ [Circular] ],
globParts:
[ [ '',
'home',
'cfeeling',
'Projects',
'frontend-web',
'build' ] ] } |
@cfeeling could yocontra/glob2base#11 fix this? |
used to fail with gulp babel |
@joshbalfour I will try it ASAP, plz wait a moment |
@joshbalfour It just disable the error, but any actions followed it can not be executed anymore |
@joshbalfour @cfeeling it will silence the error, but still fail as |
@callumacrae I'm still seeing the issue with
|
@Delta98 I agree it, the core is why |
It makes no sense at all... but when we (Microsoft/vscode) comment out this line, which requires gulp-cssnano, the error goes away. It's as if some dependency within |
@joaomoreno we also use |
@Delta98 Give it a try. It's highly reproducible for me. |
@Delta98 commenting |
I just tried to remove the use of cssnano @joaomoreno and it fixed the problem on my side too. |
@Delta98 commenting gulp-cssnano fixes it for me also |
@Delta98 gulp-cssnano fixes it for me also too |
@Delta98 I think gulp-cssnano is not the core. |
@joaomoreno yeah, it stops the error, but something must have changed within the package, or cascades through that plugin. As @cfeeling says it's not used on his project. |
@cfeeling I don't think so, bcs gulp-cssnano has last update 4 month ago |
Having the same issue here... |
running |
Looking at I think there is a common strand which might be the root cause, @cfeeling are you using any of these packages or are you uses a package that uses these? |
This has been fixed upstream, delete |
@TheSpyder what was the package? |
The bug was in a new dependency of |
@Delta98 lots of packages are using those four packages |
Now it works! Many thanks @TheSpyder ! You are my hero! <3 |
For the curious, bug reference MoOx/reduce-css-calc#13 |
Good stuff. Thanks, @TheSpyder. The actual fix is here, caused by a library globally patching Closing this issue now. |
@TheSpyder It works well, u r also my hero |
Thanks for fixing it!!!! |
yeah, the chain is about 5 dependencies long. Didn't think I needed to draw too much attention to the underlying issue :) |
Please react with the 👍 or 🎉 emoji on one of @TheSpyder's messages instead of writing an appreciative comment, thank you! There are 18 participants in this thread, and you are sending all of them notifications / emails. |
Since today whenever I do a clean install of gulp I get the following error:
The text was updated successfully, but these errors were encountered: