gulp-community / gulp-concat

Streaming concat middleware for gulp
MIT License
792 stars 126 forks source link

DeprecationWarning: fs.Stats constructor is deprecated. #155

Closed svivian closed 4 months ago

svivian commented 4 months ago

When running gulp I get this deprecation warning. According to the stack trace it's due to gulp-concat. Here's the full error:

(node:6586) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
    at cloneStats (.../node_modules/clone-stats/index.js:6:21)
    at File.clone (.../node_modules/vinyl/index.js:126:24)
    at DestroyableTransform.endStream [as _flush] (.../node_modules/gulp-concat/index.js:84:31)
    at DestroyableTransform.prefinish (.../node_modules/readable-stream/lib/_stream_transform.js:138:10)
    at DestroyableTransform.emit (node:events:520:28)
    at DestroyableTransform.emit (node:domain:551:15)
    at prefinish (.../node_modules/readable-stream/lib/_stream_writable.js:619:14)
    at finishMaybe (.../node_modules/readable-stream/lib/_stream_writable.js:627:5)
    at endWritable (.../node_modules/readable-stream/lib/_stream_writable.js:638:3)
    at Writable.end (.../node_modules/readable-stream/lib/_stream_writable.js:594:22)

I'm using the latest version of gulp (5.0) and gulp-concat (2.6.1).

phated commented 4 months ago

See https://github.com/gulpjs/vinyl-fs/issues/354