{"action":"created","issue":{"url":"https://api.github.com/repos/Alberplz/angular2-color-picker/issues/40","repository_url":"https://api.github.com/repos/Alberplz/angular2-color-picker","labels_url":"https://api.github.com/repos/Alberplz/angular2-color-picker/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/Alberplz/angular2-color-picker/issues/40/comments","events_url":"https://api.github.com/repos/Alberplz/angular2-color-picker/issues/40/events","html_url":"https://github.com/Alberplz/angular2-color-picker/issues/40","id":178335951,"number":40,"title":"Not working with AOT on RC7","user":{"login":"szadrutsky","id":2747578,"avatar_url":"https://avatars.githubusercontent.com/u/2747578?v=3","gravatar_id":"","url":"https://api.github.com/users/szadrutsky","html_url":"https://github.com/szadrutsky","followers_url":"https://api.github.com/users/szadrutsky/followers","following_url":"https://api.github.com/users/szadrutsky/following{/other_user}","gists_url":"https://api.github.com/users/szadrutsky/gists{/gist_id}","starred_url":"https://api.github.com/users/szadrutsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szadrutsky/subscriptions","organizations_url":"https://api.github.com/users/szadrutsky/orgs","repos_url":"https://api.github.com/users/szadrutsky/repos","events_url":"https://api.github.com/users/szadrutsky/events{/privacy}","received_events_url":"https://api.github.com/users/szadrutsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-21T12:43:50Z","updated_at":"2016-11-04T13:34:41Z","closed_at":null,"body":"As of RC6 directive is no longer on Component so manuals need to be updated.\nIf we are movind directive into section of declarations and running aot compilation its throwing exception:\nError: Unexpected value 'ColorPickerDirective' declared by the module 'AppModule'\n"},"comment":{"url":"https://api.github.com/repos/Alberplz/angular2-color-picker/issues/comments/258432105","html_url":"https://github.com/Alberplz/angular2-color-picker/issues/40#issuecomment-258432105","issue_url":"https://api.github.com/repos/Alberplz/angular2-color-picker/issues/40","id":258432105,"user":{"login":"mwamufiya","id":20046256,"avatar_url":"https://avatars.githubusercontent.com/u/20046256?v=3","gravatar_id":"","url":"https://api.github.com/users/mwamufiya","html_url":"https://github.com/mwamufiya","followers_url":"https://api.github.com/users/mwamufiya/followers","following_url":"https://api.github.com/users/mwamufiya/following{/other_user}","gists_url":"https://api.github.com/users/mwamufiya/gists{/gist_id}","starred_url":"https://api.github.com/users/mwamufiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwamufiya/subscriptions","organizations_url":"https://api.github.com/users/mwamufiya/orgs","repos_url":"https://api.github.com/users/mwamufiya/repos","events_url":"https://api.github.com/users/mwamufiya/events{/privacy}","received_events_url":"https://api.github.com/users/mwamufiya/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T13:34:41Z","updated_at":"2016-11-04T13:34:41Z","body":"@ronzeidman I had tried running the ngc based on the Angular tutorial [here](https://angular.io/docs/ts/latest/cookbook/aot-compiler.html) however I ran into issues.\r\n\r\nAfter mucking around a little, I was finally able to get it to work by modifying the package.json to remove typings and use \r\n`\"@types/core-js\": \"^0.9.34\",   \"@types/node\": \"^6.0.45\",`\r\n\r\nngc was also throwing errors about not being able to access items defined in the \"DynamicCpModule\" defined in Color-picker.directive. \r\n\r\nI had to add an export to that and include it in the color-picker.module.  \r\n\r\nI'm not sure if this is the right approach, especially about removing typings in favor of @types. However, once these steps were taken, I'm able to get ngc to not fail on color-picker. and I can proceed with tree shaking in my app. \r\n\r\nThanks"}}
{"actor":{"display_login":"mwamufiya"}}