gulp icon indicating copy to clipboard operation
gulp copied to clipboard

gulp.src() doesn't like windows paths with paranthesis in the name?

Open timint opened this issue 1 year ago • 1 comments

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',

timint avatar Nov 12 '24 17:11 timint

We are having the same issue with the latest version

TiagoAntunesALS avatar Nov 20 '24 18:11 TiagoAntunesALS