{"action":"created","issue":{"url":"https://api.github.com/repos/kristianmandrup/generator-aurelia-ts/issues/13","labels_url":"https://api.github.com/repos/kristianmandrup/generator-aurelia-ts/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/kristianmandrup/generator-aurelia-ts/issues/13/comments","events_url":"https://api.github.com/repos/kristianmandrup/generator-aurelia-ts/issues/13/events","html_url":"https://github.com/kristianmandrup/generator-aurelia-ts/issues/13","id":100645302,"number":13,"title":"Omitting or choosing SASS CSS Preprocessor causes \"TypeError: Cannot read property 'plugins' of undefined\" error","user":{"login":"leighghunt","id":349153,"avatar_url":"https://avatars.githubusercontent.com/u/349153?v=3","gravatar_id":"","url":"https://api.github.com/users/leighghunt","html_url":"https://github.com/leighghunt","followers_url":"https://api.github.com/users/leighghunt/followers","following_url":"https://api.github.com/users/leighghunt/following{/other_user}","gists_url":"https://api.github.com/users/leighghunt/gists{/gist_id}","starred_url":"https://api.github.com/users/leighghunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leighghunt/subscriptions","organizations_url":"https://api.github.com/users/leighghunt/orgs","repos_url":"https://api.github.com/users/leighghunt/repos","events_url":"https://api.github.com/users/leighghunt/events{/privacy}","received_events_url":"https://api.github.com/users/leighghunt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-12T22:04:27Z","updated_at":"2015-08-13T07:09:51Z","closed_at":"2015-08-13T07:09:51Z","body":"I just noticed using the latest version. If I accept all the defaults, ***but omit selecting a processor, or select SASS*** when asked to choose one, the following error occurs. Choosing Stylus results in the generator completing successfully.\r\n\r\n````\r\ntest-aurelia-ts4 % yo\r\n? 'Allo Leigh! What would you like to do? Aurelia Ts\r\n\r\nMake sure you are in the directory you want to scaffold into.\r\nThis generator can also be run with: yo aurelia-ts\r\n\r\n? application (package) name: test\r\n? title: test\r\n? description: test\r\n? github account: leighghunt\r\n? Your name: Leigh Hunt\r\n? Your email: ###############\r\n? Support IE9: Yes\r\n? Decorate the app? Yes\r\nWriting app files...\r\ncopying /build -> /build\r\ncopying /doc -> /docs\r\ncopying /test -> /test\r\n   create package.json\r\n   create README.md\r\n   create .gitignore\r\n   create index.html\r\n   create aureliafile.js\r\n   create .editorconfig\r\n   create .jshintrc\r\n   create npmignore\r\n   create aurelia.protractor.js\r\n   create gulpfile.js\r\n   create favicon.ico\r\n   create config.js\r\n   create jsconfig.json\r\n   create karma.conf.js\r\n   create protractor.conf.js\r\n   create LICENSE\r\n? Install Styles: (Y/n) \r\nwarn Running jspm globally, it is advisable to locally install jspm via npm install jspm --save-dev.\r\n? Install Styles: Yes\r\n? Install Aurelia CLI: Yes\r\n? Install Aurelia Plugins: (y/N)      Looking up github:polymer/mutationobservers\r\n     Updating registry cache...\r\nok   Installed polymer/mutationobservers as github:polymer/mutationobservers@^0.4.2 (0.4.2)\r\nok   Install tree has no forks.\r\n     Looking up loader files...\r\n       system.js\r\n       system.src.js\r\n       system-polyfills.js\r\n       system-csp-production.js.map\r\n       system-polyfills.js.map\r\n       system-csp-production.js\r\n       system-polyfills.src.js\r\n       system.js.map\r\n       system-csp-production.src.js\r\n     \r\n     Using loader versions:\r\n       systemjs@0.18.9\r\n     Looking up npm:babel-core\r\n     Looking up npm:babel-runtime\r\n     Looking up npm:core-js\r\n\r\nwarn Using local override for npm:core-js@0.9.18\r\nok   Installed babel as npm:babel-core@^5.8.20 (5.8.22)\r\n     Looking up github:jspm/nodelibs-process\r\n     Looking up github:jspm/nodelibs-fs\r\n     Looking up github:systemjs/plugin-json\r\nok   Installed github:jspm/nodelibs-process@^0.1.0 (0.1.1)\r\n     Looking up npm:process\r\nok   Installed github:jspm/nodelibs-fs@^0.1.0 (0.1.2)\r\nok   Installed github:systemjs/plugin-json@^0.1.0 (0.1.0)\r\nok   Installed npm:process@^0.10.0 (0.10.1)\r\nok   Installed babel-runtime as npm:babel-runtime@^5.8.20 (5.8.20)\r\nok   Installed core-js as npm:core-js@^0.9.4 (0.9.18)\r\nok   Loader files downloaded successfully\r\n\r\nok   Install complete.\r\n? Install Aurelia Plugins: No\r\n? Install TypeScript: No\r\n? Visual Studio: No\r\n? Install UI Frameworks: Yes\r\n? CSS Preprocessors:                              // <=== either leave blank or choose SASS\r\n? Remove old styles? No\r\n? Use Jade Templates? No\r\n? Font Awesome: Yes\r\n? Layout frameworks: Bootstrap\r\n? Primary layout framework: Bootstrap\r\n? Install CLI in global registry: No\r\n? Ampersand models and collections: Yes\r\ncopying /src -> /src\r\ncopying /styles/sass -> /styles/sass\r\ncopying /styles/stylus -> /styles/stylus\r\ncopying /styles/css -> /styles/css\r\n\r\n     _-----_\r\n    |       |    .----------------------.\r\n    |--(o)--|    |     Bye from us!     |\r\n   `---------´   |      Chat soon.      |\r\n    ( _´U`_ )    |                      |\r\n    /___A___\\    |      Yeoman team     |\r\n     |  ~  |     |   http://yeoman.io   |\r\n   __'.___.'__   '----------------------'\r\n ´   `  |° ´ Y ` \r\n\r\nevents.js:85\r\n      throw er; // Unhandled 'error' event\r\n            ^\r\nTypeError: Cannot read property 'plugins' of undefined\r\n    at styles (/Users/lhunt/.npm-packages/lib/node_modules/generator-aurelia-ts/generators/styles/write.js:25:86)\r\n    at /Users/lhunt/.npm-packages/lib/node_modules/generator-aurelia-ts/lib/writer.js:12:28\r\n    at Object.writeAll (/Users/lhunt/.npm-packages/lib/node_modules/generator-aurelia-ts/lib/writer.js:19:24)\r\n    at module.exports.yeoman.generators.Base.extend.writing (/Users/lhunt/.npm-packages/lib/node_modules/generator-aurelia-ts/generators/styles/index.js:83:17)\r\n    at /Users/lhunt/.npm-packages/lib/node_modules/generator-aurelia-ts/node_modules/yeoman-generator/lib/base.js:421:16\r\n    at processImmediate [as _immediateCallback] (timers.js:367:17)\r\ntest-aurelia-ts4 % \r\n````"},"comment":{"url":"https://api.github.com/repos/kristianmandrup/generator-aurelia-ts/issues/comments/130560790","html_url":"https://github.com/kristianmandrup/generator-aurelia-ts/issues/13#issuecomment-130560790","issue_url":"https://api.github.com/repos/kristianmandrup/generator-aurelia-ts/issues/13","id":130560790,"user":{"login":"kristianmandrup","id":125005,"avatar_url":"https://avatars.githubusercontent.com/u/125005?v=3","gravatar_id":"","url":"https://api.github.com/users/kristianmandrup","html_url":"https://github.com/kristianmandrup","followers_url":"https://api.github.com/users/kristianmandrup/followers","following_url":"https://api.github.com/users/kristianmandrup/following{/other_user}","gists_url":"https://api.github.com/users/kristianmandrup/gists{/gist_id}","starred_url":"https://api.github.com/users/kristianmandrup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristianmandrup/subscriptions","organizations_url":"https://api.github.com/users/kristianmandrup/orgs","repos_url":"https://api.github.com/users/kristianmandrup/repos","events_url":"https://api.github.com/users/kristianmandrup/events{/privacy}","received_events_url":"https://api.github.com/users/kristianmandrup/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T07:09:51Z","updated_at":"2015-08-13T07:09:51Z","body":"I will add SASS shortly, just for the sake of it..."}}