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 + browser-sync - why gulp errors on removing directory from app?
Gulp + gulp-compass compile, unchanged files being reinjected to BrowserSync
Using gulp and gulp-rename to output multiple stylus theme files
gulp build failing with cryptic ENOENT
laravel elixir version / hash a file not working
Gulp delay task
how can i change my gulp file so that it runs build task whenever there's a change in the codebase?
Making sense of build error while running gulp
How can I use a glob to ignore files that start with an underscore?
gulp exclude specific files from uglification
Can't get Gulp to reference Stylus files to generate sourcemaps
How to split a stream in gulp
Gulp.js Concat - ENOENT, no such file or directory
How to change SASS path variable using Gulp?
gulp watch “TypeError: Object function (server)”
After stop GULP with CMD+Z got an error: ✗ … Uhoh. Got error %s … listen EADDRINUSE

Categories

HOME
max
gcc
marie
locale
jenkins-pipeline
postgresql-9.3
packet
webvr
aix
c++builder
nagios
skypedeveloper
crash
opc-ua
multipartform-data
autocad
pdf-generation
vsixmanifest
dcos
digital
urllib2
chef-recipe
react-select
aggregate
dat.gui
multibinding
pylint
amazon-data-pipeline
samba
virtuemart
project-structure
openoffice-basic
gomobile
klipfolio
angular2-pipe
infinite-loop
windowserror
utc
workflow-foundation
typeclass
javapns
kundera
ds-5
apm
drawrect
exacttarget
kubectl
unity3d-5
voyager
restler
multi-user
pygraphviz
var
scalamock
byobu
ssdp
azure-web-roles
socketcluster
pyexcel
ape-phylo
definition
text-extraction
codepen
weld
ocamlbuild
noise
monaca
cancan
jscoverage
liferay-ide
multi-targeting
cc
google-scholar
huawei
android-music-player
firebase-polymer
rowname
hoare-logic
qtruby
airwatch
system-integration
wordpress-plugin
dynamics-nav-2013
app-data
libgcrypt
om
cloud-storage
properties-file
eaaccessory
photogrammetry
mergecursor
screen-lock
gmaps4jsf
iphone-6
aiff
random-access
jsonschema2pojo
breeze-sharp
nsnotificationcenter
cocos2d-x-2.x
livescript
nest-initiative
mahara
lastinsertid
ardor3d
grape-api
coinbase-php
auctex
setcookie
antixsslibrary
hypertable
certificate-revocation
jquery-ui-map
github-archive
animationdrawable
project-files
code-organization
pex-and-moles
zipstream
marathontesting
javah
nstoolbar
iphone-maps
vista64

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile