-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
src() doesn't work with wildcards (4.0.2 -> 5.0.0) #2811
Comments
i have the same issue |
What happens if you remove |
this happens: (i accidentally closed the issue) |
Sounds like your fileinclude plugin is broken, maybe it is emitting an error that's being lost. Gulp 5 changed the underlying stream implementation and misbehaving stream implementations aren't supported anymore. |
I have the exact same issue coming from 4.0.2. Using a simple src to dest stream fails with "Did you forget to signal async completion?" when using a wildcard. Works: Fails: |
I have the same issue, I started migrating to gulp v5 and faced this.
|
Also getting this with Gulp 5, downgrading to version 4 and it seems to work ok:
|
I’m encountering a similar issue with what seems like the simplest, most “basic” task Gulp could be asked to perform. I hate to even bring it up, but.... Working code: Failing code: Yes, that’s right: just a humble attempt to match multiple .scss files in a directory. Is there something that Gulp 5 has against the **/*.scss pattern? This feels so "elemental" that it almost hurts to ask. Any pointers would be appreciated. I’m really hoping this is just something obvious that I’m overlooking. |
Having upgraded from async function copy() {
return gulp
.src("wwwroot/lib/library1/folder1/**/*.{ttf}", {
base: "wwwroot/lib/library1",
})
.pipe(gulp.dest("wwwroot/dist"));
} No files are copied and I triple checked they are in the source folder. If I remove the wildcards and explicity state the folder and file names, it copies over to the Any workarounds that will still allow me to use wildcards? "npm": "^10.9.2"
node v21.6.0 |
I'm having trouble getting this to work after upgrading from gulp 4.0.2 to 5.0.0. The examples in the documentation do not include an async implementation, so they are useless.
With this simple task: const { src, dest } = require('gulp');
const rename = require('gulp-rename');
const sass = require('gulp-sass')(require('sass'));
exports.default = function () {
return src('./public/src/css/application.scss')
.pipe(sass({ outputStyle: 'compressed' }))
.pipe(rename({ extname: '.min.css' }))
.pipe(dest('public/dist/'));
} |
What were you expecting to happen?
all html files in
src/html/**/*.html
to be in thedist/
directoryWhat actually happened?
none of the files were in the
dist/
dirPlease give us a sample of your gulpfile
Terminal output / screenshots
Please provide the following information:
Additional information
When using 4.0.2, the program works as expected. So the current solution is downgrading the gulp version.
The text was updated successfully, but these errors were encountered: