Gulp-Watch中的“ TypeError:dest.on不是函数”

时间:2019-04-15 21:17:01

标签: gulp gulp-watch

运行gulp-watch并将更改保存到我的html文件时,出现以下错误。

$domPdfPath = "..vendor/dompdf/dompdf/";
Settings::setPdfRendererName(Settings::PDF_RENDERER_DOMPDF);
Settings::setPdfRendererPath($domPdfPath); //<---

任何帮助都感激不尽。 这是我的gulp文件中的代码:

[16:07:41] Starting 'html'...
[16:07:41] 'html' errored after 3.37 ms
[16:07:41] TypeError: dest.on is not a function
    at DestroyableTransform.Readable.pipe (/Users/Joe/Desktop/WEBSITE BUILDING/PROJECTS/_4. La Gran Chocolo/LGC Website/node_modules/readable-stream/lib/_stream_readable.js:564:8)
    at pipe (/Users/Joe/Desktop/WEBSITE BUILDING/PROJECTS/_4. La Gran Chocolo/LGC Website/gulp/tasks/watch.js:49:6)
    at bound (domain.js:395:14)
    at runBound (domain.js:408:12)
    at asyncRunner (/Users/Joe/Desktop/WEBSITE BUILDING/PROJECTS/_4. La Gran Chocolo/LGC Website/node_modules/async-done/index.js:55:18)
    at process._tickCallback (internal/process/next_tick.js:61:11)

Browsersync工作正常,但是文件没有通过管道传输到其目标文件夹,并且我收到此错误。

0 个答案:

没有答案