{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/1905","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/1905/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/1905/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/1905/events","html_url":"https://github.com/angular/angular-cli/issues/1905","id":174116785,"number":1905,"title":"Failed to change styleExt via cli","user":{"login":"andrelmp","id":3950193,"avatar_url":"https://avatars.githubusercontent.com/u/3950193?v=3","gravatar_id":"","url":"https://api.github.com/users/andrelmp","html_url":"https://github.com/andrelmp","followers_url":"https://api.github.com/users/andrelmp/followers","following_url":"https://api.github.com/users/andrelmp/following{/other_user}","gists_url":"https://api.github.com/users/andrelmp/gists{/gist_id}","starred_url":"https://api.github.com/users/andrelmp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrelmp/subscriptions","organizations_url":"https://api.github.com/users/andrelmp/orgs","repos_url":"https://api.github.com/users/andrelmp/repos","events_url":"https://api.github.com/users/andrelmp/events{/privacy}","received_events_url":"https://api.github.com/users/andrelmp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-30T20:25:06Z","updated_at":"2016-09-19T19:51:44Z","closed_at":null,"body":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n1. OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\nWindows 10 (x64)\r\n\r\n2. Versions. Please run `ng --version`. If there's nothing outputted, please run\r\nin a Terminal: `node --version` and paste the result here:\r\n```\r\nangular-cli: local (v1.0.0-beta.11-webpack.8, branch: master)\r\nnode: 6.4.0\r\nos: win32 x64\r\n```\r\n3. Repro steps. Was this an app that wasn't created using the CLI? What change did you\r\n   do on your code? etc.\r\nCrete a new project using: `ng new Teste --style=sass`\r\nthen run `ng set defaults.styleExt scss`\r\n\r\n4. The log given by the failure. Normally this include a stack trace and some\r\n   more information.\r\n````\r\nCannot read property 'serialize' of undefined\r\nTypeError: Cannot read property 'serialize' of undefined\r\n    at D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:235:87\r\n    at JsonSerializer.property (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\serializer.ts:100:9)\r\n    at _loop_1 (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:235:32)\r\n    at D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:240:17\r\n    at JsonSerializer.object (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\serializer.ts:88:9)\r\n    at ObjectSchemaTreeNode.serialize (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:227:20)\r\n    at D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:231:92\r\n    at JsonSerializer.property (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\serializer.ts:100:9)\r\n    at _loop_1 (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:231:36)\r\n    at D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:240:17\r\n    at JsonSerializer.object (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\serializer.ts:88:9)\r\n    at ObjectSchemaTreeNode.serialize (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:227:20)\r\n    at D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:293:33\r\n    at JsonSerializer.array (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\serializer.ts:107:9)\r\n    at ArraySchemaTreeNode.serialize (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:291:20)\r\n    at D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:231:92\r\n    at JsonSerializer.property (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\serializer.ts:100:9)\r\n    at _loop_1 (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:231:36)\r\n    at D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:240:17\r\n    at JsonSerializer.object (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\serializer.ts:88:9)\r\n    at RootSchemaTreeNode.ObjectSchemaTreeNode.serialize (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-tree.ts:227:20)\r\n    at GeneratedSchemaClass.SchemaClassBase.$$serialize (D:\\github\\angular-cli\\addon\\ng2\\models\\json-schema\\schema-class-factory.ts:141:25)\r\n````\r\n5. Mention any other details that might be useful.\r\n\r\n> ---------------------------------------------------------------\r\n> Thanks! We'll be in touch soon.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/248103493","html_url":"https://github.com/angular/angular-cli/issues/1905#issuecomment-248103493","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/1905","id":248103493,"user":{"login":"leprkhn","id":1161320,"avatar_url":"https://avatars.githubusercontent.com/u/1161320?v=3","gravatar_id":"","url":"https://api.github.com/users/leprkhn","html_url":"https://github.com/leprkhn","followers_url":"https://api.github.com/users/leprkhn/followers","following_url":"https://api.github.com/users/leprkhn/following{/other_user}","gists_url":"https://api.github.com/users/leprkhn/gists{/gist_id}","starred_url":"https://api.github.com/users/leprkhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leprkhn/subscriptions","organizations_url":"https://api.github.com/users/leprkhn/orgs","repos_url":"https://api.github.com/users/leprkhn/repos","events_url":"https://api.github.com/users/leprkhn/events{/privacy}","received_events_url":"https://api.github.com/users/leprkhn/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T19:51:44Z","updated_at":"2016-09-19T19:51:44Z","body":"I also have this problem.\r\n\r\nMint 18 (Ubuntu 16.04)\r\n\r\n```\r\nng --version\r\n\r\nCould not start watchman; falling back to NodeWatcher for file system events.\r\nVisit http://ember-cli.com/user-guide/#watchman for more info.\r\nangular-cli: 1.0.0-beta.14\r\nnode: 6.6.0\r\nos: linux x64\r\n```\r\n\r\n```\r\nng set defaults.styleExt scss\r\n\r\nCould not start watchman; falling back to NodeWatcher for file system events.\r\nVisit http://ember-cli.com/user-guide/#watchman for more info.\r\nCannot read property 'serialize' of undefined\r\nTypeError: Cannot read property 'serialize' of undefined\r\n    at /home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:235:87\r\n    at JsonSerializer.property (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/serializer.js:100:9)\r\n    at _loop_1 (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:235:32)\r\n    at /home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:240:17\r\n    at JsonSerializer.object (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/serializer.js:88:9)\r\n    at ObjectSchemaTreeNode.serialize (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:227:20)\r\n    at /home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:231:92\r\n    at JsonSerializer.property (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/serializer.js:100:9)\r\n    at _loop_1 (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:231:36)\r\n    at /home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:240:17\r\n    at JsonSerializer.object (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/serializer.js:88:9)\r\n    at ObjectSchemaTreeNode.serialize (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:227:20)\r\n    at /home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:293:33\r\n    at JsonSerializer.array (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/serializer.js:107:9)\r\n    at ArraySchemaTreeNode.serialize (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:291:20)\r\n    at /home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:231:92\r\n    at JsonSerializer.property (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/serializer.js:100:9)\r\n    at _loop_1 (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:231:36)\r\n    at /home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:240:17\r\n    at JsonSerializer.object (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/serializer.js:88:9)\r\n    at RootSchemaTreeNode.ObjectSchemaTreeNode.serialize (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-tree.js:227:20)\r\n    at GeneratedSchemaClass.SchemaClassBase.$$serialize (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/json-schema/schema-class-factory.js:141:25)\r\n    at CliConfig.serialize (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/config/config.js:37:29)\r\n    at CliConfig.save (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/models/config/config.js:33:44)\r\n    at /home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/commands/set.js:49:20\r\n    at Class.run (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/commands/set.js:31:16)\r\n    at Class.<anonymous> (/home/leprkhn/Projects/angular2-hackernews/node_modules/angular-cli/lib/models/command.js:152:17)\r\n    at tryCatch (/home/leprkhn/Projects/angular2-hackernews/node_modules/rsvp/dist/lib/rsvp/-internal.js:215:12)\r\n    at invokeCallback (/home/leprkhn/Projects/angular2-hackernews/node_modules/rsvp/dist/lib/rsvp/-internal.js:230:13)\r\n    at publish (/home/leprkhn/Projects/angular2-hackernews/node_modules/rsvp/dist/lib/rsvp/-internal.js:198:7)\r\n    at flush (/home/leprkhn/Projects/angular2-hackernews/node_modules/rsvp/dist/lib/rsvp/asap.js:82:5)\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n    at process._tickCallback (internal/process/next_tick.js:98:9)\r\n```\r\n\r\nMy current workaround is to edit\r\n```\r\n./angular-cli.json\r\n```\r\nFrom\r\n```javascript\r\n\"defaults\": {\r\n    \"styleExt\": \"css\"\r\n}\r\n```\r\nTo\r\n```javascript\r\n\"defaults\": {\r\n    \"styleExt\": \"scss\"\r\n}\r\n```\r\nAnd\r\n```\r\n./app/app.component.ts\r\n```\r\nFrom\r\n```javascript\r\n@Component({\r\n  selector: 'app-root',\r\n  templateUrl: './app.component.html',\r\n  styleUrls: ['./app.component.css']\r\n})\r\n```\r\nTo\r\n```javascript\r\n@Component({\r\n  selector: 'app-root',\r\n  templateUrl: './app.component.html',\r\n  styleUrls: ['./app.component.scss']\r\n})\r\n```\r\nAnd finally rename ```./app/app.component.css``` to ```./app/app.component.scss```"}}
{"actor":{"display_login":"leprkhn"}}