{"action":"created","issue":{"url":"https://api.github.com/repos/yeoman/generator-gulp-webapp/issues/229","labels_url":"https://api.github.com/repos/yeoman/generator-gulp-webapp/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/generator-gulp-webapp/issues/229/comments","events_url":"https://api.github.com/repos/yeoman/generator-gulp-webapp/issues/229/events","html_url":"https://github.com/yeoman/generator-gulp-webapp/issues/229","id":48663837,"number":229,"title":"when jade added, build process is failing with TypeError","user":{"login":"Chyngyz","id":1857026,"avatar_url":"https://avatars.githubusercontent.com/u/1857026?v=3","gravatar_id":"","url":"https://api.github.com/users/Chyngyz","html_url":"https://github.com/Chyngyz","followers_url":"https://api.github.com/users/Chyngyz/followers","following_url":"https://api.github.com/users/Chyngyz/following{/other_user}","gists_url":"https://api.github.com/users/Chyngyz/gists{/gist_id}","starred_url":"https://api.github.com/users/Chyngyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chyngyz/subscriptions","organizations_url":"https://api.github.com/users/Chyngyz/orgs","repos_url":"https://api.github.com/users/Chyngyz/repos","events_url":"https://api.github.com/users/Chyngyz/events{/privacy}","received_events_url":"https://api.github.com/users/Chyngyz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-11-13T17:13:49Z","updated_at":"2015-02-04T12:53:10Z","closed_at":"2014-11-15T10:16:13Z","body":"It throws TypeError in html task, it says 'events.js:74 throw TypeError('Uncaught, unspecified \"error\" event.')'. Help needed plz"},"comment":{"url":"https://api.github.com/repos/yeoman/generator-gulp-webapp/issues/comments/72849385","html_url":"https://github.com/yeoman/generator-gulp-webapp/issues/229#issuecomment-72849385","issue_url":"https://api.github.com/repos/yeoman/generator-gulp-webapp/issues/229","id":72849385,"user":{"login":"SundarRajS","id":8863576,"avatar_url":"https://avatars.githubusercontent.com/u/8863576?v=3","gravatar_id":"","url":"https://api.github.com/users/SundarRajS","html_url":"https://github.com/SundarRajS","followers_url":"https://api.github.com/users/SundarRajS/followers","following_url":"https://api.github.com/users/SundarRajS/following{/other_user}","gists_url":"https://api.github.com/users/SundarRajS/gists{/gist_id}","starred_url":"https://api.github.com/users/SundarRajS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SundarRajS/subscriptions","organizations_url":"https://api.github.com/users/SundarRajS/orgs","repos_url":"https://api.github.com/users/SundarRajS/repos","events_url":"https://api.github.com/users/SundarRajS/events{/privacy}","received_events_url":"https://api.github.com/users/SundarRajS/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T12:53:10Z","updated_at":"2015-02-04T12:53:10Z","body":"gulp.task('html',function(){\r\n  return gulp.src('app/**/*.html')\r\n  \r\n   .pipe($.useref.assets({searchPath: '{.tmp,app}'}))\r\n   // Concatenate And Minify JavaScript\r\n    .pipe($.if('*.js', $.uglify({\r\n     preserveComments: 'some'\r\n    })))\r\n    // Concatenate And Minify Styles\r\n    .pipe($.if('*.css', $.csso()))\r\n    .pipe($.useref.restore())\r\n    .pipe($.useref())\r\n    // Update Production Style Guide Paths\r\n    .pipe($.replace('styles/main.css'))\r\n    // Minify Any HTML Output Files\r\n    .pipe(gulp.dest('dist'))\r\n    .pipe($.size({title: 'html'}));\r\n});\r\n\r\nfacing issue as \r\n\r\nevents.js:74\r\n        throw TypeError('Uncaught, unspecified \"error\" event.');\r\n              ^\r\nTypeError: Uncaught, unspecified \"error\" event.\r\n    at TypeError (<anonymous>)\r\n    at Transform.emit (events.js:74:15)\r\n\r\nhas any one came across this issue in gulp-useref \r\nplease suggest what could be the source of issue and how to fix this \r\n\r\n\r\nThanks\r\nSundar"}}