gulp
gulp copied to clipboard
gulp.src() doesn't like windows paths with paranthesis in the name?
What were you expecting to happen?
I expected gulp.src() to resolve a file.
What actually happened?
It produced an error:
Error: File not found with singular glob: D:/Projects/My Project \(alpha\)/public_html/backend/template/less/app.less
Please give us a sample of your gulpfile.mjs
import gulp from 'gulp';
...
var gulp = require(‘gulp');
...
gulp.task('less-to-css', function() {
return gulp.src([
'public_html/backend/template/less/app.less',
...
})
...
Please provide the following information:
- Windows 11 24H2
- Node.js v23.1.0
- NPM v10.9.0
- gulp 5.0.0
Additional information
- Preceeding the file with ./ does not work.
- Providing the absolute path circumvents the problem.
'D:/Projects/My Project (alpha)/public_html/backend/template/less/app.less',
We are having the same issue with the latest version