I've tried various things for config.languages.src ranging from what is there currently to just functions.php but that value doesn't appear to change the result.
[14:25:45] Using gulpfile ~/wp-content/themes/minnpost-largo/gulpfile.js
[14:25:45] Starting 'translation'...
[14:25:47] 'translation' errored after 2.37 s
[14:25:47] TypeError: dest.on is not a function
at DestroyableTransform.Readable.pipe (/wp-content/themes/minnpost-largo/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:564:8)
at DestroyableTransform.pipe2 (/wp-content/themes/minnpost-largo/node_modules/gulp-plumber/index.js:72:14)
at translation (/wp-content/themes/minnpost-largo/gulpfile.js:213:8)
at taskWrapper (/wp-content/themes/minnpost-largo/node_modules/undertaker/lib/set-task.js:13:15)
at bound (domain.js:425:14)
at runBound (domain.js:438:12)
at asyncRunner (/wp-content/themes/minnpost-largo/node_modules/async-done/index.js:55:18)
at processTicksAndRejections (internal/process/task_queues.js:79:9)
I have a WordPress theme and I'm trying to update all the methods to Gulp 4.
Dependencies:
Config:
I've tried various things for
config.languages.src
ranging from what is there currently to justfunctions.php
but that value doesn't appear to change the result.Then the translation method:
I've tried to add the method both of these ways:
When I run
gulp translation
, I get the following:Can you point me in a direction here?