{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/21390","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/21390/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/21390/comments","events_url":"https://api.github.com/repos/angular/angular/issues/21390/events","html_url":"https://github.com/angular/angular/issues/21390","id":286790927,"number":21390,"title":"strictNullChecks errors on third party library templates during AOT compilation","user":{"login":"filipesilva","id":4172079,"avatar_url":"https://avatars2.githubusercontent.com/u/4172079?v=4","gravatar_id":"","url":"https://api.github.com/users/filipesilva","html_url":"https://github.com/filipesilva","followers_url":"https://api.github.com/users/filipesilva/followers","following_url":"https://api.github.com/users/filipesilva/following{/other_user}","gists_url":"https://api.github.com/users/filipesilva/gists{/gist_id}","starred_url":"https://api.github.com/users/filipesilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipesilva/subscriptions","organizations_url":"https://api.github.com/users/filipesilva/orgs","repos_url":"https://api.github.com/users/filipesilva/repos","events_url":"https://api.github.com/users/filipesilva/events{/privacy}","received_events_url":"https://api.github.com/users/filipesilva/received_events","type":"User","site_admin":false},"labels":[{"id":375501288,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core%20&%20compiler","name":"comp: core & compiler","color":"c7def8","default":false},{"id":375497160,"url":"https://api.github.com/repos/angular/angular/labels/freq2:%20medium","name":"freq2: medium","color":"fbca04","default":false},{"id":375498203,"url":"https://api.github.com/repos/angular/angular/labels/severity3:%20broken","name":"severity3: broken","color":"0052cc","default":false},{"id":130606843,"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug/fix","name":"type: bug/fix","color":"EEEEEE","default":false}],"state":"open","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,"number":82,"title":"Backlog","description":"Milestone for triaged issues that have not yet been scheduled for resolution.","creator":{"login":"IgorMinar","id":216296,"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":1693,"closed_issues":112,"state":"open","created_at":"2018-01-18T16:52:20Z","updated_at":"2018-05-04T21:28:36Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2018-01-08T15:52:57Z","updated_at":"2018-05-08T09:13:37Z","closed_at":null,"author_association":"MEMBER","body":"Copied from @imba3r original report in https://github.com/angular/angular-cli/issues/8373.\r\n\r\nRepo provided as https://github.com/imba3r/angular-cli-issue-8373.\r\n\r\n---\r\n\r\n<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n```\r\nAngular CLI: 1.5.0\r\nNode: 6.9.5\r\nOS: win32 x64\r\nAngular: 5.0.0\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\n@angular/cli: 1.5.0\r\n@angular-devkit/build-optimizer: 0.0.32\r\n@angular-devkit/core: 0.0.20\r\n@angular-devkit/schematics: 0.0.35\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.8.0\r\n@schematics/angular: 0.1.0\r\ntypescript: 2.4.2\r\nwebpack: 3.8.1\r\n\r\n```\r\n\r\n### Repro steps.\r\n\r\n1. Create a new project.\r\n2. Add a dependency that does not compile with strictNullChecks=true.\r\n3. Enable strictNullChecks and skipLibCheck in tsconfig.\r\n```\r\ntsconfig.json:\r\n    ...\r\n    \"strictNullChecks\": true,\r\n    \"skipLibCheck\": true,\r\n    ...\r\n```\r\n\r\n### The log given by the failure.\r\n<!-- Normally this include a stack trace and some more information. -->\r\n```\r\n$ ng build --prod\r\nDate: 2017-11-06T17:27:15.764Z\r\nHash: 8e4cd6cc4d070e8a0de8\r\nTime: 22346ms\r\nchunk {0} styles.fabe2b98feb13974353f.bundle.css (styles) 229 kB [initial] [rendered]\r\nchunk {1} polyfills.3bc34265385d52184eab.bundle.js (polyfills) 86 bytes [initial] [rendered]\r\nchunk {2} main.e402deade8b026b7d50e.bundle.js (main) 84 bytes [initial] [rendered]\r\nchunk {3} inline.bb2ddc972beb199ae1a7.bundle.js (inline) 1.45 kB [entry] [rendered]\r\n\r\nERROR in Error at C:/[......]/ui/node_modules/ng-snotify/ng-snotify.d.ts.ToastComponent.html(1,193): Object is possibly 'undefined'.\r\nError at C:/[......]/ui/node_modules/ng-snotify/ng-snotify.d.ts.ToastComponent.html(1,193): Object is possibly 'undefined'.\r\nError at C:/[......]/ui/node_modules/ng-snotify/ng-snotify.d.ts.ToastComponent.html(1,193): Object is possibly 'undefined'.\r\nError at C:/[......]/ui/node_modules/ng-snotify/ng-snotify.d.ts.ToastComponent.html(1,193): Object is possibly 'undefined'.\r\n\r\n\r\n```\r\n\r\n\r\n\r\n### Desired functionality.\r\nThe build should succeed.\r\n\r\n### Mention any other details that might be useful.\r\nIn my case I added ng-snotify: `npm install --save ng-snotify`.\r\nI have not tried this with a version <1.5.0.\r\n\r\n  \r\n  "},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/387338498","html_url":"https://github.com/angular/angular/issues/21390#issuecomment-387338498","issue_url":"https://api.github.com/repos/angular/angular/issues/21390","id":387338498,"user":{"login":"elvirdolic","id":17769458,"avatar_url":"https://avatars1.githubusercontent.com/u/17769458?v=4","gravatar_id":"","url":"https://api.github.com/users/elvirdolic","html_url":"https://github.com/elvirdolic","followers_url":"https://api.github.com/users/elvirdolic/followers","following_url":"https://api.github.com/users/elvirdolic/following{/other_user}","gists_url":"https://api.github.com/users/elvirdolic/gists{/gist_id}","starred_url":"https://api.github.com/users/elvirdolic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elvirdolic/subscriptions","organizations_url":"https://api.github.com/users/elvirdolic/orgs","repos_url":"https://api.github.com/users/elvirdolic/repos","events_url":"https://api.github.com/users/elvirdolic/events{/privacy}","received_events_url":"https://api.github.com/users/elvirdolic/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T09:13:37Z","updated_at":"2018-05-08T09:13:37Z","author_association":"NONE","body":"Same issue can be reproduced also with the LIB: https://github.com/MurhafSousli/ngx-gallery/issues/82"}}
{"actor":{"display_login":"elvirdolic"}}