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: Object #<Object> has no method 'if'
gulp postcss rem to pixel fall back
Running pipeline section multiple times with different arguments for concat step
Reactify transform not running when declared in package.json
Gulp plugin for running a PHP server?
Annotating a Vinyl stream in Gulp with additional metadata
Gulp: How to create a task that compiles multiple SASS files?
Why does Gulp.js throw a Bus Error: 10 with gulp.watch?
Why doesn't my gulp-uncss task, strip out unused css?
Gulp: How to set users home directory in Gulp destination?
Does intern testing framework have any gulp plug-ins or docs to integrate with gulp?
Gulp: How to implement livereload without Chrome's livereload plugin?
Browserify hides modules when names conflict with builtins
gulp performing task multiple times
Sourcemap source files are empty using gulp-uglifyjs
Compiling with gulp/node/libsass is taking 30+ seconds

Categories

HOME
latex
gaussian
jquery-plugins
cryengine
spss
foreach
servicenow
webpack-dev-server
sahi
segmentation-fault
ng2-charts
tmux
opengrok
box2d
brightway
game-engine
pylint
audio-streaming
angular2-pipe
google-drive-android-api
aspxgridview
poisson
jira-zephyr
smart-device
large-files
units-of-measurement
federated
ds-5
xlib
language-detection
spring-oauth2
rtos
wunderground
mkdir
perf
dotnetnuke-module
irr
amazon-rds-aurora
codepen
dna-sequence
richtext
kendo-scheduler
liferay-ide
distcc
scriptengine
angularfire
avaudiorecorder
audiorecord
shtml
custom-build-step
wordpress-plugin
dynamics-nav
biginsights
updating
cloud-storage
openhab
syncano
sparkcore
polarion
euro
minko
chunks
fiware-health
mind-manager
nsnotificationcenter
powershell-v1.0
indic
scjp
elixir-framework
data-layers
vbaccelerator
facebook-likebox
scidb
ojb
android-library
removeall
codeigniter-form-helper
mysql2
string-length
helicontech
httppostedfilebase
jqtransform
activescaffold
morfik
weak-typing

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