{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/8779","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/8779/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/8779/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/8779/events","html_url":"https://github.com/angular/angular-cli/issues/8779","id":280072099,"node_id":"MDU6SXNzdWUyODAwNzIwOTk=","number":8779,"title":"Existing App does not get Service Worker capabilities","user":{"login":"bogacg","id":5073927,"node_id":"MDQ6VXNlcjUwNzM5Mjc=","avatar_url":"https://avatars3.githubusercontent.com/u/5073927?v=4","gravatar_id":"","url":"https://api.github.com/users/bogacg","html_url":"https://github.com/bogacg","followers_url":"https://api.github.com/users/bogacg/followers","following_url":"https://api.github.com/users/bogacg/following{/other_user}","gists_url":"https://api.github.com/users/bogacg/gists{/gist_id}","starred_url":"https://api.github.com/users/bogacg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogacg/subscriptions","organizations_url":"https://api.github.com/users/bogacg/orgs","repos_url":"https://api.github.com/users/bogacg/repos","events_url":"https://api.github.com/users/bogacg/events{/privacy}","received_events_url":"https://api.github.com/users/bogacg/received_events","type":"User","site_admin":false},"labels":[{"id":957896443,"node_id":"MDU6TGFiZWw5NTc4OTY0NDM=","url":"https://api.github.com/repos/angular/angular-cli/labels/comp:%20devkit/build-angular","name":"comp: devkit/build-angular","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":{"login":"alxhub","id":4175141,"node_id":"MDQ6VXNlcjQxNzUxNDE=","avatar_url":"https://avatars0.githubusercontent.com/u/4175141?v=4","gravatar_id":"","url":"https://api.github.com/users/alxhub","html_url":"https://github.com/alxhub","followers_url":"https://api.github.com/users/alxhub/followers","following_url":"https://api.github.com/users/alxhub/following{/other_user}","gists_url":"https://api.github.com/users/alxhub/gists{/gist_id}","starred_url":"https://api.github.com/users/alxhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxhub/subscriptions","organizations_url":"https://api.github.com/users/alxhub/orgs","repos_url":"https://api.github.com/users/alxhub/repos","events_url":"https://api.github.com/users/alxhub/events{/privacy}","received_events_url":"https://api.github.com/users/alxhub/received_events","type":"User","site_admin":false},"assignees":[{"login":"alxhub","id":4175141,"node_id":"MDQ6VXNlcjQxNzUxNDE=","avatar_url":"https://avatars0.githubusercontent.com/u/4175141?v=4","gravatar_id":"","url":"https://api.github.com/users/alxhub","html_url":"https://github.com/alxhub","followers_url":"https://api.github.com/users/alxhub/followers","following_url":"https://api.github.com/users/alxhub/following{/other_user}","gists_url":"https://api.github.com/users/alxhub/gists{/gist_id}","starred_url":"https://api.github.com/users/alxhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxhub/subscriptions","organizations_url":"https://api.github.com/users/alxhub/orgs","repos_url":"https://api.github.com/users/alxhub/repos","events_url":"https://api.github.com/users/alxhub/events{/privacy}","received_events_url":"https://api.github.com/users/alxhub/received_events","type":"User","site_admin":false}],"milestone":null,"comments":44,"created_at":"2017-12-07T10:12:39Z","updated_at":"2018-10-18T08:14:00Z","closed_at":"2018-07-09T16:01:24Z","author_association":"NONE","body":"### Versions\r\n```\r\nAngular CLI: 1.6.0\r\nNode: 9.2.0\r\nOS: win32 x64\r\nAngular: 5.1.0\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n... service-worker\r\n\r\n@angular/cli: 1.6.0\r\n@angular-devkit/build-optimizer: 0.0.35\r\n@angular-devkit/core: 0.0.22\r\n@angular-devkit/schematics: 0.0.41\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.9.0\r\n@schematics/angular: 0.1.10\r\n@schematics/schematics: 0.0.10\r\ntypescript: 2.6.2\r\nwebpack: 3.10.0\r\n```\r\n\r\n### Repro steps\r\nHave an existing app with no PWA capability and [apply steps to upgrade it as described in docs](https://angular.io/guide/service-worker-getstart).\r\n\r\n### Observed behavior\r\nDespite the fact it builds with no error and `dist` folder has files like `ngsw.json` & `ngsw-worker.js` as expected, they are not loaded on network request when browsed. (Tested with incognito mode as well)\r\nNo service-worker effect at all in app.\r\n\r\n### Desired behavior\r\nService Worker added to built app when steps in official docs are applied.\r\n\r\n### Mention any other details that might be useful\r\nOn the same machine, a new app generated with Angular-CLI 1.6.0 with `--service-worker` flag. That app loads service worker as expected.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/430917123","html_url":"https://github.com/angular/angular-cli/issues/8779#issuecomment-430917123","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/8779","id":430917123,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDkxNzEyMw==","user":{"login":"Teamop","id":8519685,"node_id":"MDQ6VXNlcjg1MTk2ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/8519685?v=4","gravatar_id":"","url":"https://api.github.com/users/Teamop","html_url":"https://github.com/Teamop","followers_url":"https://api.github.com/users/Teamop/followers","following_url":"https://api.github.com/users/Teamop/following{/other_user}","gists_url":"https://api.github.com/users/Teamop/gists{/gist_id}","starred_url":"https://api.github.com/users/Teamop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teamop/subscriptions","organizations_url":"https://api.github.com/users/Teamop/orgs","repos_url":"https://api.github.com/users/Teamop/repos","events_url":"https://api.github.com/users/Teamop/events{/privacy}","received_events_url":"https://api.github.com/users/Teamop/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T08:14:00Z","updated_at":"2018-10-18T08:14:00Z","author_association":"CONTRIBUTOR","body":"With angular-cli 6.2.5 and angular 6.1.10, this issue still exists. Also related to [angular#20970](https://github.com/angular/angular/issues/20970)"}}
{"actor":{"display_login":"Teamop"}}