gulp


gulp-imagemin: error “pPipe(…) is not a function”


Running gulp-imagemin causes the following error:
/.../node_modules/imagemin/index.js:64
const pipe = opts.plugins.length > 0 ? pPipe(opts.plugins)(input) : Promise.resolve(input);
^
TypeError: pPipe(...) is not a function
Source:
import plugins from 'gulp-load-plugins';
...
gulp.task('img:production', () =>
gulp.src(`${config.dirs.src}/img/**/*`)
.pipe(plugins().imagemin())
.pipe(gulp.dest(`${config.dirs.dist}/img`))
);
...
gulp.task('build:production',
[
'img:production',
'html:production',
'css:production',
'js:production',
'copy',
'critical',
],
);
Gulp: 3.9.1
Gulp-Imagemin: 3.2.0
This seems to be an issue with the current version of gulp-imagemin. But it should be fixed with the upcomming version, according to that issue: https://github.com/sindresorhus/gulp-imagemin/issues/261

Related Links

gulp run sequence after promise resolve
How to define a gulp task that can be used only as other task's dependency?
Does gulp-concat also works with a forEach loop?
Wro4j vs grunt gulp and others
multiple dist directories occur in requests when aurelia bundle is deployed
read the var for multiple Jade files using gulp
Gulp postpone error occurring whilst running run-sequence to end of tasks list
Attemoting to get browsersync to work from Gulp
Gulp concat jQuery throws error
In gulp, why do we need to give it a hint to tell it when the task is done?
execute tasks synchronously in gulp
Gulp Minify SVG to a string
Gulp.js - Output files with variable directory names but with a constant filename
gulp-eslint: TypeError: (0 , _eslint2.default) is not a function
Gulp-watch ignores files with parenthesis
Polymer: Gulp build transpile + bundle

Categories

HOME
oauth-2.0
jenkins-pipeline
postgresql-9.3
liquibase
readdir
opc-ua
ms-application-insights
overrides
localhost
ms-access-2010
procmon
wavefront
pyodbc
cracking
ejb-3.0
smooth-scrolling
aws-devicefarm
url-parameters
jq
wai-aria
devexpress-mvc
chartist.js
ckeditor4.x
pydub
resx
windows-10-mobile
intermec
boost-log
login-required
language-detection
imdb
flickr
headphones
gstreamer-1.0
rtsp
redhat-brms
stdin
motion
compiled-query
pyexcel
collation
flume-ng
peerjs
cakephp-3.2
gradlew
weld
azure-data-catalog
xmldom
easyquery
visio-2010
jscoverage
vertex
node-java
nservicebus6
hellosign
scanf
scikit-image
rowname
jigsaw
patching
bytearray
archiva
radar-chart
google-finance-api
web-performance
tvp
gulp-cdnizer
edgar
pagecontrol
page-refresh
data-representation
tinymce-plugins
bungeecord
cordova-3
class-library
html5-filesystem
facebook-likebox
sygic
usersettings
friendly-url
leap-year
mosix
uikit-dynamics
exi
vline
urlfetch
cron4j
tasklist
certificate-revocation
sup
win-prolog
advanceddatagrid
project-files
symfony-1.2
n2
cinder
helios
coderush-xpress
atmega16
j++
moores-law

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App