{"action":"created","issue":{"url":"https://api.github.com/repos/gruntjs/grunt-contrib-imagemin/issues/330","labels_url":"https://api.github.com/repos/gruntjs/grunt-contrib-imagemin/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/gruntjs/grunt-contrib-imagemin/issues/330/comments","events_url":"https://api.github.com/repos/gruntjs/grunt-contrib-imagemin/issues/330/events","html_url":"https://github.com/gruntjs/grunt-contrib-imagemin/issues/330","id":115855928,"number":330,"title":"Fatal error: Cannot read property 'contents' of undefined","user":{"login":"douglasdeodato","id":993318,"avatar_url":"https://avatars.githubusercontent.com/u/993318?v=3","gravatar_id":"","url":"https://api.github.com/users/douglasdeodato","html_url":"https://github.com/douglasdeodato","followers_url":"https://api.github.com/users/douglasdeodato/followers","following_url":"https://api.github.com/users/douglasdeodato/following{/other_user}","gists_url":"https://api.github.com/users/douglasdeodato/gists{/gist_id}","starred_url":"https://api.github.com/users/douglasdeodato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglasdeodato/subscriptions","organizations_url":"https://api.github.com/users/douglasdeodato/orgs","repos_url":"https://api.github.com/users/douglasdeodato/repos","events_url":"https://api.github.com/users/douglasdeodato/events{/privacy}","received_events_url":"https://api.github.com/users/douglasdeodato/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":54,"created_at":"2015-11-09T11:19:55Z","updated_at":"2016-01-13T13:59:12Z","closed_at":"2015-11-10T21:18:53Z","body":"i am getting that error after run: grunt imagemin\r\n\r\nRunning \"imagemin:dist\" (imagemin) task\r\nFatal error: Cannot read property 'contents' of undefined\r\n\r\nthe funnest part is: i am using the same code and images from other project for test and in that projects everything works perfect. \\o/ \r\ni tried use --force but keeps the same error, the task minimize one image but not all.\r\n\r\nmy gruntfile.js\r\n//Image min ===============================\r\n\r\n\t\t\t\tvar imagemin;\r\n\t\t\t\tconfig.imagemin = imagemin = {};\r\n\r\n\t\t\t\t\timagemin.dist = {\r\n\t\t\t\t\t\t\t\t  options: {\r\n\t\t\t\t\t\t          optimizationLevel: 5,\r\n\t\t\t\t\t\t          progressive: true,\r\n\t\t\t\t\t\t      },\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t        files: [{\r\n\t\t\t\t\t            expand: true,\r\n\t\t\t\t\t            cwd: 'public/images/',\r\n\t\t\t\t\t            src: ['**/*.{png,jpg,gif}'],\r\n\t\t\t\t\t            dest: 'public/images/min'\r\n\t\t\t\t\t        }]\r\n\t\t\t\t\t };\t"},"comment":{"url":"https://api.github.com/repos/gruntjs/grunt-contrib-imagemin/issues/comments/171298220","html_url":"https://github.com/gruntjs/grunt-contrib-imagemin/issues/330#issuecomment-171298220","issue_url":"https://api.github.com/repos/gruntjs/grunt-contrib-imagemin/issues/330","id":171298220,"user":{"login":"juliusosokinas","id":7352358,"avatar_url":"https://avatars.githubusercontent.com/u/7352358?v=3","gravatar_id":"","url":"https://api.github.com/users/juliusosokinas","html_url":"https://github.com/juliusosokinas","followers_url":"https://api.github.com/users/juliusosokinas/followers","following_url":"https://api.github.com/users/juliusosokinas/following{/other_user}","gists_url":"https://api.github.com/users/juliusosokinas/gists{/gist_id}","starred_url":"https://api.github.com/users/juliusosokinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliusosokinas/subscriptions","organizations_url":"https://api.github.com/users/juliusosokinas/orgs","repos_url":"https://api.github.com/users/juliusosokinas/repos","events_url":"https://api.github.com/users/juliusosokinas/events{/privacy}","received_events_url":"https://api.github.com/users/juliusosokinas/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T13:59:12Z","updated_at":"2016-01-13T13:59:12Z","body":"@konstantin24121, make sure to add 2.2.1 version of vinyl-fs to your local devDependencies."}}