{"action":"opened","issue":{"url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/380","repository_url":"https://api.github.com/repos/Urigo/angular2-meteor","labels_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/380/comments","events_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/380/events","html_url":"https://github.com/Urigo/angular2-meteor/issues/380","id":174461094,"number":380,"title":"@Injectable decorator not working","user":{"login":"paistipoikka","id":20871336,"avatar_url":"https://avatars.githubusercontent.com/u/20871336?v=3","gravatar_id":"","url":"https://api.github.com/users/paistipoikka","html_url":"https://github.com/paistipoikka","followers_url":"https://api.github.com/users/paistipoikka/followers","following_url":"https://api.github.com/users/paistipoikka/following{/other_user}","gists_url":"https://api.github.com/users/paistipoikka/gists{/gist_id}","starred_url":"https://api.github.com/users/paistipoikka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paistipoikka/subscriptions","organizations_url":"https://api.github.com/users/paistipoikka/orgs","repos_url":"https://api.github.com/users/paistipoikka/repos","events_url":"https://api.github.com/users/paistipoikka/events{/privacy}","received_events_url":"https://api.github.com/users/paistipoikka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-01T08:06:03Z","updated_at":"2016-09-01T08:06:03Z","closed_at":null,"body":"Hi,\r\n\r\nI am creating an Angular2-Meteor project. I have set it up my to use Angular 2 RC5. Everything works nicely until I try to add a service using the @injectable() decorator. As soon as it's added I receive a meteor compile error:\r\n\r\n> reflect-metadata shim is required when using class decorators\r\n\r\nAs soon as I remove the @injectable() decorator Meteor compiles everything and I can load my application.\r\n\r\nI have the barbatus:angular2-polyfills package installed which I think is all that is needed to import the required zone.js and reflect-metadata package. Someone has suggested using imports at the top of the main.ts but that doesn't work.\r\n\r\nThe @NgModule and @component decorators are working without a problem. As I have yet to wire the service (that uses the @injectable decorator) up to my @ngmodule I think this indicates that the Meteor environment simply isn't handling the @injectable decorator as intended. Regardless of whether it is used or not.\r\n\r\nIs this a known issues, a new issue or some kind of misconfiguration? Any advice or ideas on how to solve this issue would be much appreciated. \r\n\r\nJT\r\n\r\nThe meteor packages installed are:\r\n\r\n```\r\nmeteor-base@1.0.4             # Packages every Meteor app needs to have\r\nmobile-experience@1.0.4       # Packages for a great mobile UX\r\nmongo@1.1.12                   # The database Meteor supports right now\r\nreactive-var@1.0.10            # Reactive variable for tracker\r\njquery@1.11.9                  # Helpful client-side library\r\ntracker@1.1.0                 # Meteor's client-side reactive programming library\r\nstandard-minifier-css@1.2.0   # CSS minifier run for production mode\r\nstandard-minifier-js@1.2.0    # JS minifier run for production mode\r\nes5-shim@4.6.14                # ECMAScript 5 compatibility for older browsers.\r\necmascript@0.5.8              # Enable ECMAScript2015+ syntax in app code\r\n\r\nautopublish@1.0.7             # Publish all data to the clients (for prototyping)\r\ninsecure@1.0.7                # Allow all DB writes from clients (for prototyping)\r\nangular2-compilers\r\nbarbatus:angular2-runtime\r\npracticalmeteor:mocha\r\nxolvio:cleaner\r\nhwillson:stub-collections\r\ndispatch:mocha-phantomjs\r\nshell-server\r\nbarbatus:angular2-polyfills\r\n```\r\nThe npm packages from package.json installed are:\r\n\r\n ```\r\n \"dependencies\": {\r\n    \"@angular/common\": \"2.0.0-rc.5\",\r\n    \"@angular/compiler\": \"2.0.0-rc.5\",\r\n    \"@angular/core\": \"2.0.0-rc.5\",\r\n    \"@angular/forms\": \"^0.3.0\",\r\n    \"@angular/platform-browser\": \"2.0.0-rc.5\",\r\n    \"@angular/platform-browser-dynamic\": \"2.0.0-rc.5\",\r\n    \"@angular/router\": \"^3.0.0-rc.1\",\r\n    \"@angular2-material/button\": \"^2.0.0-alpha.7-4\",\r\n    \"@angular2-material/card\": \"^2.0.0-alpha.7-4\",\r\n    \"@angular2-material/checkbox\": \"^2.0.0-alpha.7-4\",\r\n    \"@angular2-material/core\": \"^2.0.0-alpha.7-4\",\r\n    \"@angular2-material/input\": \"^2.0.0-alpha.7-4\",\r\n    \"@angular2-material/toolbar\": \"^2.0.0-alpha.7-4\",\r\n    \"angular2-meteor\": \"^0.7.0-beta.1\",\r\n    \"angular2-meteor-auto-bootstrap\": \"^0.6.0\",\r\n    \"angular2-meteor-polyfills\": \"^0.1.1\",\r\n    \"angular2-meteor-tests-polyfills\": \"^0.0.2\",\r\n    \"bcrypt\": \"^0.8.7\",\r\n    \"es6-shim\": \"0.35.1\",\r\n    \"meteor-node-stubs\": \"0.2.3\",\r\n    \"reflect-metadata\": \"0.1.3\",\r\n    \"rxjs\": \"5.0.0-beta.6\",\r\n    \"zone.js\": \"0.6.12\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"chai\": \"3.5.0\",\r\n    \"chai-spies\": \"0.7.1\",\r\n    \"codelyzer\": \"latest\",\r\n    \"tslint\": \"latest\",\r\n    \"typescript\": \"latest\",\r\n    \"typings\": \"latest\"\r\n  }\r\n```"}}
{"actor":{"display_login":"paistipoikka"}}