hustxiaoc / gulp-minify

minify js plugin for gulp
BSD 2-Clause "Simplified" License
65 stars 20 forks source link

non-vinyl object #53

Closed vyskoczilova closed 5 years ago

vyskoczilova commented 5 years ago

Using Gulp 4 and Node v10.15.1 NPM 6.4.1 I've got following error, how I can fix it?

Error: Received a non-Vinyl object in `dest()`
    at DestroyableTransform.normalize [as _transform] (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\vinyl-fs\lib\dest\prepare.js:16:17)
    at DestroyableTransform.Transform._read (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:83)
    at doWrite (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:428:64)
    at writeOrBuffer (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:417:5)
    at DestroyableTransform.Writable.write (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:334:11)
    at Pumpify.Duplexify._write (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\duplexify\index.js:208:22)
    at doWrite (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\duplexify\node_modules\readable-stream\lib\_stream_writable.js:428:64)
    at writeOrBuffer (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\duplexify\node_modules\readable-stream\lib\_stream_writable.js:417:5)
    at Pumpify.Writable.write (C:\Users\KV\Local Sites\foodora\app\public\wp-content\themes\foodora-kurier\node_modules\duplexify\node_modules\readable-stream\lib\_stream_writable.js:334:11)
vyskoczilova commented 5 years ago

Ah, it was related to an old major version 2.1.0, the current 3.1.0 works. Sorry for bothering you.