{"action":"created","issue":{"url":"https://api.github.com/repos/steveblue/angular2-rollup/issues/32","repository_url":"https://api.github.com/repos/steveblue/angular2-rollup","labels_url":"https://api.github.com/repos/steveblue/angular2-rollup/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/steveblue/angular2-rollup/issues/32/comments","events_url":"https://api.github.com/repos/steveblue/angular2-rollup/issues/32/events","html_url":"https://github.com/steveblue/angular2-rollup/pull/32","id":391718395,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5MTQ5MTY3","number":32,"title":"NGR ERROR ReferenceError: rej is not defined","user":{"login":"danielpcampagna","id":7855757,"node_id":"MDQ6VXNlcjc4NTU3NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/7855757?v=4","gravatar_id":"","url":"https://api.github.com/users/danielpcampagna","html_url":"https://github.com/danielpcampagna","followers_url":"https://api.github.com/users/danielpcampagna/followers","following_url":"https://api.github.com/users/danielpcampagna/following{/other_user}","gists_url":"https://api.github.com/users/danielpcampagna/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpcampagna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpcampagna/subscriptions","organizations_url":"https://api.github.com/users/danielpcampagna/orgs","repos_url":"https://api.github.com/users/danielpcampagna/repos","events_url":"https://api.github.com/users/danielpcampagna/events{/privacy}","received_events_url":"https://api.github.com/users/danielpcampagna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T13:44:01Z","updated_at":"2018-12-17T18:41:07Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/steveblue/angular2-rollup/pulls/32","html_url":"https://github.com/steveblue/angular2-rollup/pull/32","diff_url":"https://github.com/steveblue/angular2-rollup/pull/32.diff","patch_url":"https://github.com/steveblue/angular2-rollup/pull/32.patch"},"body":"# Prerequisites\r\n\r\n```cmd\r\n> yarn --version\r\n1.12.3\r\n\r\n> ng --version\r\nAngular CLI: 7.1.3\r\nNode: 11.3.0\r\nOS: win32 x64\r\nAngular: 7.1.3\r\n\r\n> ngr --version\r\n2.0.1\r\n```\r\n\r\n# Current Behavior\r\n\r\nOn build application using JIT compiler I get this error:\r\n\r\n```cmd\r\n> ngr build jit\r\nNGR ERROR ReferenceError: rej is not defined\r\n    at ReadFileContext.fs.readFile [as callback] (C:\\Users\\MyUser\\AppData\\Roaming\\npm\\node_modules\\angular-rollup\\src\\compile\\tsc.js:93:21)\r\n    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:245:13)\r\n```\r\n\r\nInspecting that file, function `rej` is not defined. I suppose that enough passes it as the argument to promise. https://github.com/steveblue/angular2-rollup/blob/33a791058097144f6b2c5dfe39d29ea6a0be07ad/src/compile/tsc.js#L58-L99\r\n\r\n\r\n## Steps to Reproduce\r\n\r\n1. Create a new project and install dependencies\r\n\r\n```cmd\r\n> ngr new my-app --yarn\r\n> yarn install\r\n```\r\n\r\n2. Generate dist files using JIT Compiler.\r\n\r\n```cmd\r\n> ngr build jit\r\nNGR ERROR ReferenceError: rej is not defined\r\n    at ReadFileContext.fs.readFile [as callback] (C:\\Users\\MyUser\\AppData\\Roaming\\npm\\node_modules\\angular-rollup\\src\\compile\\tsc.js:93:21)\r\n    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:245:13)\r\n```"},"comment":{"url":"https://api.github.com/repos/steveblue/angular2-rollup/issues/comments/447952788","html_url":"https://github.com/steveblue/angular2-rollup/pull/32#issuecomment-447952788","issue_url":"https://api.github.com/repos/steveblue/angular2-rollup/issues/32","id":447952788,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzk1Mjc4OA==","user":{"login":"steveblue","id":1171943,"node_id":"MDQ6VXNlcjExNzE5NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1171943?v=4","gravatar_id":"","url":"https://api.github.com/users/steveblue","html_url":"https://github.com/steveblue","followers_url":"https://api.github.com/users/steveblue/followers","following_url":"https://api.github.com/users/steveblue/following{/other_user}","gists_url":"https://api.github.com/users/steveblue/gists{/gist_id}","starred_url":"https://api.github.com/users/steveblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveblue/subscriptions","organizations_url":"https://api.github.com/users/steveblue/orgs","repos_url":"https://api.github.com/users/steveblue/repos","events_url":"https://api.github.com/users/steveblue/events{/privacy}","received_events_url":"https://api.github.com/users/steveblue/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T18:41:07Z","updated_at":"2018-12-17T18:41:07Z","author_association":"OWNER","body":"Was this the only issue blocking jit @danielpcampagna ? Kinda amazing if it is because I haven't been supporting the jit build in a couple months."}}
{"actor":{"display_login":"steveblue"}}