Open lik3as opened 2 months ago
i have the same issue its copy part of file
What happens if you remove async
on your function? You can't combine promise-returning and stream-returning functions.
What happens if you remove
async
on your function? You can't combine promise-returning and stream-returning functions.
this happens: [15:34:34] The following tasks did not complete: build-html [15:34:34] Did you forget to signal async completion? error Command failed with exit code 1.
(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 tested and the error still occurs when I remove fileInclude:
Also, it runs normally when using the callback (but still doesn't include all glob matching files)
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: gulp.src('src/index.html')
Fails: gulp.src('src/*.html')
I have the same issue, I started migrating to gulp v5 and faced this.
gulp: v5.0.0
node: v20.14.0
npm: 10.7.0
macOS: 14.6.1 Sonoma
Also getting this with Gulp 5, downgrading to version 4 and it seems to work ok:
yarn add gulp@4
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.