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

Define file order in gulpfile.js
Gulp remove .min.* from filenames
Gulp Browser Sync doesn't work
Visual Studio Code. Build gulp task has no effect. Nothing happens, output is empty
Gulp browsersync basedir
Is it possible to use browser-sync with deployd?
vueify (in gulp task) with babel transform of vue files
gulp-imagemin: Couldn't load default plugin xxx
gulp build error: CssSyntaxError: Unexpected input
Gulp one watch task, compile one Sass file to multiple locations?
Running protractor tests in internet explorer?
Gulp throwing error when i run gulp icons
Conditionally running transform on browserify
Gulp resolve failed
Grouping files by ignoring file extension in gulp
Can not run protractor with gulp (ECONNREFUSED connect ECONNREFUSED)

Categories

HOME
msbuild
abc
popover
liquibase
reference
skypedeveloper
mifare
jquery-plugins
stdout
css-selectors
servicenow
flowtype
python-3.4
google-api-oauth
box-api
angularjs-ng-repeat
rename
mongoimport
dynamics-crm-2011
solidity
desktop-application
resharper
drush
tracking
responsive
background-image
ofbiz
accordion
glibc
spring-webflow
android-wifi
coccinelle
connectiq
angular2-pipe
javaagents
pushbullet
ps
apdu
grunt-contrib-uglify
windows-mobile
orgchart
semantic-ui-react
intermec
tikz
dom4j
repeat
device-driver
oracle-bpm-suite
rtsp
stencyl
queryover
pygraphviz
word-wrap
aspose.pdf
keychain
susy
python-venv
taleo
ack
npoco
openxava
jcs
extjs3
cancan
fluent-nhibernate-mapping
fckeditor
boost-regex
android-vectordrawable
typewriter
androiddesignsupport
directinput
jigsaw
php-java-bridge
system-integration
boost-propertytree
clique
web-optimization
web-performance
controlpanel
magnet-uri
recode
first-order-logic
log4cxx
vensim
stereotype
vectordrawable
grails-3.0.9
clearcanvas
sync
api-eveonline
breeze-sharp
gnip
nsmutableurlrequest
sat4j
fscanf
cs193p
yandex-api
satisfiability
traceur
cvi
mysql-error-1146
violation
uikit-dynamics
proj4
feincms
sup
qvariant
azure-appfabric
conditional-operator
dongle
linq-to-mysql
for-xml
web-search
code-golf
mysql-pconnect

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile