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

Passing image optimization options not working in gulp plugin.
How to stop correctly a gulp watch-task from Atom editor?
Change URL in ngrok using gulp
Gulp wiredep ignorePath not working
FSEvents_connect invalid destination port blocking gulp process
Gulp rename file to change case only
local gulp not found after installing globally and locally
Gulp watch only new SCSS files
Gulp won't run project
How to use Basic Authentification with gulp-sftp?
Gulp zip missing some files in a folder
gulp sass is not working showing error
How to fix plumber cannot pipe to undefind with pug
Cannot find module 'laravel-elixir' when I type 'gulp' in my laravel project dir
Unable to build Sitecore Habitat solution
gulp - Error events.js:72 throw er; // Unhandled 'error' event

Categories

HOME
asp.net
oop
msbuild
service
azure-eventhub
postsharp
itext7
arguments
perl6
mediarecorder
foreach
hibernate-mapping
install
rethinkdb
ephesoft
javascript-debugger
dat.gui
cucumberjs
android-actionbar
google-calendar-api3
project-reactor
gpo
jq
webgl-earth
datazen-server
android-navigation-drawer
sha
sasl
ballerinalang
mex
setup-project
launchd
sphinx4
node-soap
console.readline
mapquest
jibx
iterm2
scalamock
ui-grid
binary-decision-diagram
colorbox
text-extraction
codepen
vertex
enet
node-java
intermediate-language
trusted-computing
acceleo
lattice
disconnect
hfp
oryx
nslocalizedstring
askbot
web-performance
overlapping
transbase
windows-phone-8-emulator
dockerpy
smartxls
satisfiability
iwork
acrofields
ie-developer-tools
string-length
vline
antixsslibrary
freeimage
expresso-store
mvcmailer
inserthtml
automapper-2
log-shipping
opendir
meego-harmattan
html5-animation
excellibrary
activescaffold
linq-to-mysql
file-storage

Resources

Encrypt Message