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 TypeError: Path must be a string. Received undefined
Copy a file to new name in same directory using gulp
gulp watch: no gulpfile found
gulp useref working for bower components, but not for my app files (css and js)
Gulp Autoprefixer - specified browser list ignored? -ms- prefixes missing
BrowserSync proxy to two backend ports
Gulp error: The following tasks did not complete: Did you forget to signal async completion?
Gulp and babel are extremely slow
Gulp-hg task seems to finish before actually complete
Iterate through multiple folders to compile all SASS to CSS in Gulp
Gulp runSequence running in parallel
How can I run a gulp task only on new and changed files?
The latest angular-fullstack-generator is missing the glyphicons-halflings-regular fonts in the gulp serve:dist? WHY?
Gulp throwing error: File not found with singular glob
Gulp reload doesn't work
Gulp with Browserify: Bundle task seems to fail after Delete task when watching

Categories

HOME
asterisk
indexing
system-calls
typo3
pelican
weblogic
gaussian
localhost
terminal
swap
collision-detection
annyang
wkhtmltopdf
ios-universal-links
olap
xmlhttprequest
appsettings
ringcentral
wallet
views
orange
formulas
serenity-js
gnu-screen
handle
pixels
rancher
inspec
visual-studio-community
adobe-captivate
hierarchy
folder
concrete5
vtd-xml
boost-log
favorites
jsonapi-resources
geocomplete
border-layout
abide
anypoint-studio
client-server
matrix-multiplication
stencyl
latency
observer-pattern
jks
google-cloud-shell
ajv
xamarin-test-cloud
dmalloc
dynatable
scanf
mac-app-store
dbi
instaparse
key-value-store
nimbus
sbt-proguard
treelist
sqlxml
web-optimization
hana-sql-script
opendolphin
overlapping
cloud-storage
consul-template
eula
avd
valdr-bean-validation
copy-on-write
veeam
jsonmodel
react-os
xts
rpt
episerver-7
yandex-api
sigma-grid-control
cvi
adabas
surfaceview
leap-year
qmainwindow
database-restore
cryptarithmetic-puzzle
beep
pdf-reader
datasheet
project-files
pex-and-moles
digg
netduino
nbehave
xcdatamodel
arraycollection
dgml
appointment
jettison

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App