{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/12559","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/12559/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/12559/comments","events_url":"https://api.github.com/repos/angular/angular/issues/12559/events","html_url":"https://github.com/angular/angular/issues/12559","id":185618543,"number":12559,"title":"_isNgModuleMetadata returning false for decorator factory","user":{"login":"jshthornton","id":2814746,"avatar_url":"https://avatars.githubusercontent.com/u/2814746?v=3","gravatar_id":"","url":"https://api.github.com/users/jshthornton","html_url":"https://github.com/jshthornton","followers_url":"https://api.github.com/users/jshthornton/followers","following_url":"https://api.github.com/users/jshthornton/following{/other_user}","gists_url":"https://api.github.com/users/jshthornton/gists{/gist_id}","starred_url":"https://api.github.com/users/jshthornton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshthornton/subscriptions","organizations_url":"https://api.github.com/users/jshthornton/orgs","repos_url":"https://api.github.com/users/jshthornton/repos","events_url":"https://api.github.com/users/jshthornton/events{/privacy}","received_events_url":"https://api.github.com/users/jshthornton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-27T09:34:10Z","updated_at":"2016-10-27T09:38:43Z","closed_at":null,"body":"**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\nI have built an external angular 2 module which is compiled with typescript and imported into the app module. Currently I get this error `metadata_resolver.js:227 Uncaught Error: Unexpected value 'MyModule' imported by the module 'AppModule'``. This is caused by the fact that `_isNgModuleMetadata` is returning false due to:\r\n```\r\nDecoratorFactory\r\n-----------------------\r\nbootstrap: undefined\r\ndeclarations: Array[3]\r\nentryComponents: undefined\r\nexports: undefined\r\nid: undefined\r\nimports: Array[1]\r\nproviders: undefined\r\nschemas: undefined\r\n__proto__: Object\r\n```\r\nIs not equating to an instance of NgModule.\r\n\r\n\r\n**Expected behavior**\r\nFor the decorator factory to equal an instance of NgModule\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.X\r\n@angular/core: 2.0.1\r\n\r\n* **Browser:** \r\nChrome 54\r\n \r\n* **Language:**\r\nTypescript compiled to ES6 with core-js shims\r\n\r\n* **Node (for AoT issues):** `node --version` =   \r\nv6.6.0"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/256594983","html_url":"https://github.com/angular/angular/issues/12559#issuecomment-256594983","issue_url":"https://api.github.com/repos/angular/angular/issues/12559","id":256594983,"user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T09:38:42Z","updated_at":"2016-10-27T09:38:42Z","body":"Aot/Jit? Pls provide working reproduction."}}
{"actor":{"display_login":"DzmitryShylovich"}}