-
Notifications
You must be signed in to change notification settings - Fork 258
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
"Cannot read property 'contents' of undefined" - after npm & imagemin update #73
Comments
Seems like it's something wrong with your gulpfile. You're essentially piping "nothing" to gulp-imagemin and therefore it can't read the contents of your file. Can you paste it here or in a gist? |
Well, going to close this since it's not an issue with |
I'm seeing this issue pop up on OSX for a gulpfile that works on Linux. There's no difference to the contents of the pipe in either case. |
See also gruntjs/grunt-contrib-imagemin#208. |
I found a difference between previous gulp task on image optimization & example shown on https://www.npmjs.com/package/gulp-imagemin. Now it's useful to use imagemin-pngquant plugin instead of imagemin-pngcrush. |
update the package.json file and modify your grunt-contrib-imagemin to "grunt-contrib-imagemin": "^1.0.0", |
npm version 2.1.7
package.json
After a fresh npm install the following error appears. This as well happens with "gulp-imagemin": "^1.2.1".
The same code worked with an earlier npm version.
The text was updated successfully, but these errors were encountered: