{"action":"opened","issue":{"url":"https://api.github.com/repos/doronsever/generator-gulp-angular-subtask/issues/5","labels_url":"https://api.github.com/repos/doronsever/generator-gulp-angular-subtask/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/doronsever/generator-gulp-angular-subtask/issues/5/comments","events_url":"https://api.github.com/repos/doronsever/generator-gulp-angular-subtask/issues/5/events","html_url":"https://github.com/doronsever/generator-gulp-angular-subtask/issues/5","id":57949190,"number":5,"title":"Error when generating a directive","user":{"login":"coot","id":698209,"avatar_url":"https://avatars.githubusercontent.com/u/698209?v=3","gravatar_id":"","url":"https://api.github.com/users/coot","html_url":"https://github.com/coot","followers_url":"https://api.github.com/users/coot/followers","following_url":"https://api.github.com/users/coot/following{/other_user}","gists_url":"https://api.github.com/users/coot/gists{/gist_id}","starred_url":"https://api.github.com/users/coot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coot/subscriptions","organizations_url":"https://api.github.com/users/coot/orgs","repos_url":"https://api.github.com/users/coot/repos","events_url":"https://api.github.com/users/coot/events{/privacy}","received_events_url":"https://api.github.com/users/coot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-17T16:50:07Z","updated_at":"2015-02-17T16:50:07Z","closed_at":null,"body":"I got this traceback when I generate a directive:\r\n```\r\nyo gulp-angular-subtask:directive choice\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nTypeError: Cannot read property 'language' of undefined\r\n    at module.exports.generators.NamedBase.extend._getFileTypeCheck (/usr/lib64/node_modules/generator-gulp-angular-subtask/app/script-base.js:130:24)\r\n    at module.exports.generators.NamedBase.extend._getFileType (/usr/lib64/node_modules/generator-gulp-angular-subtask/app/script-base.js:113:19)\r\n    at module.exports.generators.NamedBase.extend.appTemplate (/usr/lib64/node_modules/generator-gulp-angular-subtask/app/script-base.js:41:25)\r\n    at module.exports.ScriptBase.extend.exec (/usr/lib64/node_modules/generator-gulp-angular-subtask/directive/index.js:10:10)\r\n    at /usr/lib64/node_modules/generator-gulp-angular-subtask/node_modules/yeoman-generator/lib/base.js:408:16\r\n    at processImmediate [as _immediateCallback] (timers.js:345:15)\r\n```\r\n\r\nI use `generator-gulp-angular@0.9.1` and `generator-gulp-angular-subtask@0.8.0`."}}