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

A Gulp “process terminated with code 1”
how to enable intellisense in Visual Studio Code?
gulp dependency breaks gulp in the middle
No CSS with Gulp
gulp move files to parent directory
How to get gulp-jshint to ignore folders
Inserting specific file at index of a stream
How to pass array from gulp to other js files?
BrowserSync + Gulp with Vagrant not refreshing
gulp-tslint return undefined when required
Gulp watch only runs once
Gulp watch not working with imported files but works with main file
Gulp watch for css doesn't work
Using gulp for compiling of changed files only
How to run gulp task in visual studio code?
BrowserSync with custom URL

Categories

HOME
drupal
classification
postgresql
twitter-bootstrap
optimization
mobile
abc
highmaps
crm
okhttp3
app-store
msbi
checkpoint
foreach
annyang
runtime
core-data
dynamics-crm-2011
unreal-engine4
tracking
mbed
aggregate
openscad
taxonomy
virtuemart
datazen-server
coccinelle
beaker-notebook
v4l2
scrapy-spider
visual-studio-community
android-cursorloader
libxml2
lines
mplab
android-geofence
ragel
stencyl
jquery-inputmask
gem-fury
server-side-swift
text-formatting
easyquery
opos
htop
opticalflow
reloaddata
bipartite
virtualenvwrapper
objectify
transaction-isolation
razorengine
paypal-subscriptions
cexception
app-data
newlib
edgar
azure-mobile-app
euro
fileinputstream
avd
gcc-warning
connection-timeout
optimistic-locking
clearcanvas
growl
nsurlrequest
formbuilder
vundle
oxygenxml
disparity-mapping
dotcmis
triplestore
azure-caching
.net-reflector
codio
lastinsertid
grunt-contrib-imagemin
aspnet-compiler
zend-db-table
oc4j
codeigniter-form-helper
winrt-async
jquery-ui-map
nsscrollview
isgl3d
execjs
mismatch
object-tag
chars
table-valued-parameters
ihtmldocument2
expander
software-update

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