{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/15890","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/15890/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/15890/comments","events_url":"https://api.github.com/repos/angular/angular/issues/15890/events","html_url":"https://github.com/angular/angular/issues/15890","id":220848604,"node_id":"MDU6SXNzdWUyMjA4NDg2MDQ=","number":15890,"title":"Please add a @Pipe/@Directive/@Component annotation in Angular 4","user":{"login":"IevhenIkonnykov","id":17820185,"node_id":"MDQ6VXNlcjE3ODIwMTg1","avatar_url":"https://avatars3.githubusercontent.com/u/17820185?v=4","gravatar_id":"","url":"https://api.github.com/users/IevhenIkonnykov","html_url":"https://github.com/IevhenIkonnykov","followers_url":"https://api.github.com/users/IevhenIkonnykov/followers","following_url":"https://api.github.com/users/IevhenIkonnykov/following{/other_user}","gists_url":"https://api.github.com/users/IevhenIkonnykov/gists{/gist_id}","starred_url":"https://api.github.com/users/IevhenIkonnykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IevhenIkonnykov/subscriptions","organizations_url":"https://api.github.com/users/IevhenIkonnykov/orgs","repos_url":"https://api.github.com/users/IevhenIkonnykov/repos","events_url":"https://api.github.com/users/IevhenIkonnykov/events{/privacy}","received_events_url":"https://api.github.com/users/IevhenIkonnykov/received_events","type":"User","site_admin":false},"labels":[{"id":375501288,"node_id":"MDU6TGFiZWwzNzU1MDEyODg=","url":"https://api.github.com/repos/angular/angular/labels/comp:%20core%20&%20compiler","name":"comp: core & compiler","color":"c7def8","default":false},{"id":375496864,"node_id":"MDU6TGFiZWwzNzU0OTY4NjQ=","url":"https://api.github.com/repos/angular/angular/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":375498203,"node_id":"MDU6TGFiZWwzNzU0OTgyMDM=","url":"https://api.github.com/repos/angular/angular/labels/severity3:%20broken","name":"severity3: broken","color":"0052cc","default":false},{"id":348933279,"node_id":"MDU6TGFiZWwzNDg5MzMyNzk=","url":"https://api.github.com/repos/angular/angular/labels/state:%20Need%20repro","name":"state: Need repro","color":"e11d21","default":false},{"id":130606843,"node_id":"MDU6TGFiZWwxMzA2MDY4NDM=","url":"https://api.github.com/repos/angular/angular/labels/type:%20bug/fix","name":"type: bug/fix","color":"EEEEEE","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/82","html_url":"https://github.com/angular/angular/milestone/82","labels_url":"https://api.github.com/repos/angular/angular/milestones/82/labels","id":3045967,"node_id":"MDk6TWlsZXN0b25lMzA0NTk2Nw==","number":82,"title":"Backlog","description":"Milestone for triaged issues that have not yet been scheduled for resolution.","creator":{"login":"IgorMinar","id":216296,"node_id":"MDQ6VXNlcjIxNjI5Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/216296?v=4","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":1940,"closed_issues":346,"state":"open","created_at":"2018-01-18T16:52:20Z","updated_at":"2018-09-13T23:05:52Z","due_on":null,"closed_at":null},"comments":88,"created_at":"2017-04-11T06:08:06Z","updated_at":"2018-09-14T06:32:05Z","closed_at":"2018-08-31T12:42:40Z","author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ x ] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n<!-- Describe how the bug manifests. -->\r\nI had a completely working project on Angular 2.4.3 (used Angular cli) and moved it to Angular 4.0.1. I made it twice in a different way. First changed package.json and other necessary files. Second - created  an empty project by Angular cli and copied into it my project files. In both cases I get the same error when I try to launch the app with a command `ng serve`:\r\n \r\n**compiler.es5.js:14577** Uncaught Error: Unexpected value 'LoadingComponent' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation.\r\n    at syntaxError (http://localhost:4200/vendor.bundle.js:53165:34) [<root>]\r\n    at http://localhost:4200/vendor.bundle.js:65680:40 [<root>]\r\n    at Array.forEach (native) [<root>]\r\n    at CompileMetadataResolver.getNgModuleMetadata (http://localhost:4200/vendor.bundle.js:65662:54) [<root>]\r\n    at JitCompiler._loadModules (http://localhost:4200/vendor.bundle.js:76740:64) [<root>]\r\n    at JitCompiler._compileModuleAndComponents (http://localhost:4200/vendor.bundle.js:76699:52) [<root>]\r\n    at JitCompiler.compileModuleAsync (http://localhost:4200/vendor.bundle.js:76661:21) [<root>]\r\n    at PlatformRef_._bootstrapModuleWithZone (http://localhost:4200/vendor.bundle.js:5145:25) [<root>]\r\n    at PlatformRef_.bootstrapModule (http://localhost:4200/vendor.bundle.js:5131:21) [<root>]\r\n    at Object.245 (http://localhost:4200/main.bundle.js:16721:124) [<root>]\r\n    at __webpack_require__ (http://localhost:4200/inline.bundle.js:53:30) [<root>]\r\n    at Object.776 (http://localhost:4200/main.bundle.js:45425:18) [<root>]\r\n    at __webpack_require__ (http://localhost:4200/inline.bundle.js:53:30) [<root>]\r\n    at webpackJsonpCallback (http://localhost:4200/inline.bundle.js:24:23) [<root>]\r\n\r\n_**The interesting part is that when I try to launch it with a command `ng serve --aot` it works.**_\r\n\r\n**Expected behavior**\r\n<!-- Describe what the behavior would be without the bug. -->\r\nShould work as in Angular 2.4.3.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n<!--\r\nIf the current behavior is a bug or you can illustrate your feature request better with an example, \r\nplease provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\r\n-->\r\nUnfortunately it is not an open-source project. \r\nThe project is compiled successfully in WebStorm, but it cannot be launched in the browser. My settings are:\r\nLoadingComponent is correct (at least seems to me):\r\n\r\nimport {Component, Input} from '@angular/core';\r\n@Component({\r\nselector: 'cdp-loading',\r\ntemplateUrl: './loading.component.html'\r\n})\r\nexport class LoadingComponent {\r\n@Input() public isBusy: boolean;\r\n}\r\n\r\nWhen I remove this component it complains on another and so on.\r\nMy package.json:\r\n{\r\n\"name\": \"web-services-ui\",\r\n\"version\": \"0.1.0\",\r\n\"description\": \"Angular2 SPA\",\r\n\"license\": \"ISC\",\r\n\"author\": \"Author\",\r\n\"scripts\": {\r\n\"ng\": \"ng\",\r\n\"start\": \"ng serve --proxy-config proxy.config.json\",\r\n\"build\": \"ng build\",\r\n\"lint\": \"ng lint\",\r\n\"test\": \"ng test\",\r\n\"e2e\": \"protractor\"\r\n},\r\n\"private\": true,\r\n\"dependencies\": {\r\n\"@angular/common\": \"^4.0.0\",\r\n\"@angular/compiler\": \"^4.0.0\",\r\n\"@angular/core\": \"^4.0.0\",\r\n\"@angular/forms\": \"^4.0.0\",\r\n\"@angular/http\": \"^4.0.0\",\r\n\"@angular/platform-browser\": \"^4.0.0\",\r\n\"@angular/platform-browser-dynamic\": \"^4.0.0\",\r\n\"@angular/platform-server\": \"^4.0.0\",\r\n\"@angular/router\": \"^4.0.0\",\r\n\"@angular/animations\": \"^4.0.0\",\r\n\"core-js\": \"^2.4.1\",\r\n\"rxjs\": \"^5.1.0\",\r\n\"zone.js\": \"^0.8.4\",\r\n\"primeng\": \"^4.0.0-rc.2\",\r\n\"marked\": \"0.3.6\",\r\n\"prismjs\": \"^1.6.0\"\r\n},\r\n\"devDependencies\": {\r\n\"@angular/cli\": \"1.0.0\",\r\n\"@angular/compiler-cli\": \"^4.0.0\",\r\n\"@types/jasmine\": \"2.5.38\",\r\n\"@types/node\": \"~6.0.60\",\r\n\"codelyzer\": \"~2.0.0\",\r\n\"jasmine-core\": \"~2.5.2\",\r\n\"jasmine-spec-reporter\": \"~3.2.0\",\r\n\"karma\": \"~1.4.1\",\r\n\"karma-chrome-launcher\": \"~2.0.0\",\r\n\"karma-cli\": \"~1.0.1\",\r\n\"karma-jasmine\": \"~1.1.0\",\r\n\"karma-jasmine-html-reporter\": \"^0.2.2\",\r\n\"karma-coverage-istanbul-reporter\": \"^0.2.0\",\r\n\"protractor\": \"~5.1.0\",\r\n\"ts-node\": \"~2.0.0\",\r\n\"tslint\": \"~4.5.0\",\r\n\"typescript\": \"~2.2.0\"\r\n}\r\n}\r\n\r\nMy AppModule:\r\n\r\n@NgModule({\r\ndeclarations: [\r\nAppComponent,\r\nOpenDirective,\r\nHeaderComponent,\r\nNavigationSiteDirectoryComponent,\r\nNavigationComponent,\r\nFooterComponent,\r\nContentComponent,\r\nHomeComponent,\r\nLoadingComponent,\r\nOpenEngineeringModelModalComponent,\r\nLogoutComponent,\r\nModalContainerComponent,\r\nModelNavigationContainerComponent,\r\nNavigationModelComponent,\r\nControlSideBarComponent\r\n],\r\nimports: [\r\nBrowserModule,\r\nHttpModule,\r\nAPP_ROUTER_PROVIDERS,\r\nFormsModule,\r\nReactiveFormsModule,\r\nCommonModule,\r\nCDP4SharedModule,\r\nRequirementModule,\r\nSiteDirectoryModule,\r\nEngineeringModelModule,\r\nRIDModule,\r\nEngineeringModelDataNoteModule,\r\nFileStoreModule\r\n],\r\nproviders: [\r\n{provide: APP_BASE_HREF, useValue: '/'},\r\nBusyIndicatorService,\r\nThingUpdateService,\r\nWebServiceClient,\r\nCdpServicesDal,\r\nModelNavigationService,\r\nUserSessionService,\r\nSiteDirectoryResolver,\r\nEngineeringModelResolver,\r\nDialogService,\r\nValidationService,\r\nTreeTableService,\r\nRequirementTreeTableService,\r\nSharedTreeTableService,\r\nFileStoreTreeTableService,\r\nPersonTreeTableService,\r\nConfigService,\r\n{provide: APP_INITIALIZER, useFactory: initConfig, deps: [ConfigService], multi: true }\r\n],\r\nbootstrap: [AppComponent]\r\n})\r\n\r\nexport class AppModule {\r\n}\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n<!-- Describe the motivation or the concrete use case -->\r\nIf this configuration worked in Angular 2.4.3 it should work in Angular 4.0.1.\r\n\r\n**Please tell us about your environment:**\r\n<!-- Operating system, IDE, package manager, HTTP server, ... -->\r\nWindows 7 64bit, Webstorm 2016.3.3, npm 4.1.1\r\n* **Angular version:** 4.0.1\r\n<!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\n* **Browser:** Chrome Version 57.0.2987.133 (64-bit)\r\n<!-- All browsers where this could be reproduced -->\r\n \r\n* **Language:** Typescript 2.2.2\r\n\r\n* **Node (for AoT issues):** `node --version` =   7.4.0\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/421245668","html_url":"https://github.com/angular/angular/issues/15890#issuecomment-421245668","issue_url":"https://api.github.com/repos/angular/angular/issues/15890","id":421245668,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTI0NTY2OA==","user":{"login":"kumar1010sumit","id":30043197,"node_id":"MDQ6VXNlcjMwMDQzMTk3","avatar_url":"https://avatars3.githubusercontent.com/u/30043197?v=4","gravatar_id":"","url":"https://api.github.com/users/kumar1010sumit","html_url":"https://github.com/kumar1010sumit","followers_url":"https://api.github.com/users/kumar1010sumit/followers","following_url":"https://api.github.com/users/kumar1010sumit/following{/other_user}","gists_url":"https://api.github.com/users/kumar1010sumit/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar1010sumit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar1010sumit/subscriptions","organizations_url":"https://api.github.com/users/kumar1010sumit/orgs","repos_url":"https://api.github.com/users/kumar1010sumit/repos","events_url":"https://api.github.com/users/kumar1010sumit/events{/privacy}","received_events_url":"https://api.github.com/users/kumar1010sumit/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T06:32:05Z","updated_at":"2018-09-14T06:32:05Z","author_association":"NONE","body":"import {NgbModule} from '@ng-bootstrap/ng-bootstrap';\r\n\r\n@NgModule({\r\n  declarations: [\r\n   ....\r\n  ],\r\n  imports: [\r\n   .....\r\n  ],\r\n  providers: [NgbModule],\r\n  bootstrap: [AppComponent]\r\n})\r\n In my **app.module.ts** file"}}
{"actor":{"display_login":"kumar1010sumit"}}