{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/1564","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/1564/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/1564/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/1564/events","html_url":"https://github.com/angular/angular-cli/issues/1564","id":169612930,"number":1564,"title":"Create a component after installation using the CLI breaks the application completely","user":{"login":"iainplimmer","id":11050308,"avatar_url":"https://avatars.githubusercontent.com/u/11050308?v=3","gravatar_id":"","url":"https://api.github.com/users/iainplimmer","html_url":"https://github.com/iainplimmer","followers_url":"https://api.github.com/users/iainplimmer/followers","following_url":"https://api.github.com/users/iainplimmer/following{/other_user}","gists_url":"https://api.github.com/users/iainplimmer/gists{/gist_id}","starred_url":"https://api.github.com/users/iainplimmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainplimmer/subscriptions","organizations_url":"https://api.github.com/users/iainplimmer/orgs","repos_url":"https://api.github.com/users/iainplimmer/repos","events_url":"https://api.github.com/users/iainplimmer/events{/privacy}","received_events_url":"https://api.github.com/users/iainplimmer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-05T13:56:48Z","updated_at":"2016-08-10T07:48:45Z","closed_at":"2016-08-10T07:48:45Z","body":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n1. OS?  Mac OSX - El capitan\r\n\r\n\r\n2. Versions. Please run `ng --version`. \r\n\r\n4.4.3\r\n\r\n\r\n3. Repro steps. \r\n\r\nCreate a new app with the CLI, type 'ng serve' then create a new component with 'ng g component my-header' you will find that the application no longer runs.\r\n\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\nBuild error\r\n\r\nThe Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:\r\nError: Typescript found the following errors:\r\n  /Users/iainplimmer/git/IainPlimmer/tmp/broccoli_type_script_compiler-input_base_path-huodGnWg.tmp/0/src/app/my-header/my-header.component.spec.ts (5, 10): Module '\"/Users/iainplimmer/git/IainPlimmer/node_modules/@angular/core/testing\"' has no exported member 'addProviders'.\r\n    at BroccoliTypeScriptCompiler._doIncrementalBuild (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:120:19)\r\n    at BroccoliTypeScriptCompiler.build (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:43:10)\r\n    at /Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/broccoli-caching-writer/index.js:152:21\r\n    at lib$rsvp$$internal$$tryCatch (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1036:16)\r\n    at lib$rsvp$$internal$$invokeCallback (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1048:17)\r\n    at lib$rsvp$$internal$$publish (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1019:11)\r\n    at lib$rsvp$asap$$flush (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1198:9)\r\n    at nextTickCallbackWith0Args (node.js:420:9)\r\n    at process._tickCallback (node.js:349:13)\r\n\r\nThe broccoli plugin was instantiated at: \r\n    at BroccoliTypeScriptCompiler.Plugin (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/broccoli-plugin/index.js:10:31)\r\n    at BroccoliTypeScriptCompiler.CachingWriter [as constructor] (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/broccoli-caching-writer/index.js:21:10)\r\n    at BroccoliTypeScriptCompiler (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:27:10)\r\n    at Angular2App._getTsTree (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/lib/broccoli/angular2-app.js:331:18)\r\n    at Angular2App._buildTree (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/lib/broccoli/angular2-app.js:124:23)\r\n    at new Angular2App (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/lib/broccoli/angular2-app.js:53:23)\r\n    at module.exports (/Users/iainplimmer/git/IainPlimmer/angular-cli-build.js:6:10)\r\n    at Class.module.exports.Task.extend.setupBroccoliBuilder (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/ember-cli/lib/models/builder.js:55:19)\r\n    at Class.module.exports.Task.extend.init (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/ember-cli/lib/models/builder.js:89:10)\r\n    at new Class (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/core-object/core-object.js:18:12)\r\n    at Class.module.exports.Task.extend.run (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/ember-cli/lib/tasks/serve.js:15:19)\r\n    at /Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/ember-cli/lib/commands/serve.js:64:24\r\n    at lib$rsvp$$internal$$tryCatch (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1036:16)\r\n    at lib$rsvp$$internal$$invokeCallback (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1048:17)\r\n    at /Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:331:11\r\n    at lib$rsvp$asap$$flush (/Users/iainplimmer/git/IainPlimmer/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:1198:9)\r\n\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/238791340","html_url":"https://github.com/angular/angular-cli/issues/1564#issuecomment-238791340","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/1564","id":238791340,"user":{"login":"iainplimmer","id":11050308,"avatar_url":"https://avatars.githubusercontent.com/u/11050308?v=3","gravatar_id":"","url":"https://api.github.com/users/iainplimmer","html_url":"https://github.com/iainplimmer","followers_url":"https://api.github.com/users/iainplimmer/followers","following_url":"https://api.github.com/users/iainplimmer/following{/other_user}","gists_url":"https://api.github.com/users/iainplimmer/gists{/gist_id}","starred_url":"https://api.github.com/users/iainplimmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainplimmer/subscriptions","organizations_url":"https://api.github.com/users/iainplimmer/orgs","repos_url":"https://api.github.com/users/iainplimmer/repos","events_url":"https://api.github.com/users/iainplimmer/events{/privacy}","received_events_url":"https://api.github.com/users/iainplimmer/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T07:48:45Z","updated_at":"2016-08-10T07:48:45Z","body":"Unable to recreate after reinstallation"}}
{"actor":{"display_login":"iainplimmer"}}