Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: pipe.then is not a function #8

Closed
thisconnect opened this issue May 25, 2016 · 2 comments
Closed

TypeError: pipe.then is not a function #8

thisconnect opened this issue May 25, 2016 · 2 comments

Comments

@thisconnect
Copy link

Installation worked fine on
OS X 10.11.5
Xcode Version 7.3.1
Node v6.2.0

npm i imagemin-webp

> cwebp-bin@3.1.0 postinstall /Users/me/project/node_modules/cwebp-bin
> node lib/install.js

  ✔ cwebp pre-build test passed successfully

testing

const imagemin = require('imagemin');
const imageminWebp = require('imagemin-webp');

imagemin(['images/*.{jpg,png}'], 'build', {
  use: [imageminWebp({quality: 50})]
})
.then(() => {
  console.log('Images optimized');
})
.catch(err => {
  console.log(err)
});

errors:

node ./imagemin-webp.js 
TypeError: pipe.then is not a function
    at fsP.readFile.then.data (/Users/me/project/node_modules/imagemin/index.js:15:4)
@kevva
Copy link
Member

kevva commented May 25, 2016

Fixed in f0994b5. Hadn't published a new version. Install 4.x.x.

@kevva kevva closed this as completed May 25, 2016
@thisconnect
Copy link
Author

@kevva thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants