Title: Existing App does not get Service Worker capabilities · Issue #8779 · angular/angular-cli · GitHub
Open Graph Title: Existing App does not get Service Worker capabilities · Issue #8779 · angular/angular-cli
X Title: Existing App does not get Service Worker capabilities · Issue #8779 · angular/angular-cli
Description: Versions Angular CLI: 1.6.0 Node: 9.2.0 OS: win32 x64 Angular: 5.1.0 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, platform-server, router ... servi...
Open Graph Description: Versions Angular CLI: 1.6.0 Node: 9.2.0 OS: win32 x64 Angular: 5.1.0 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dy...
X Description: Versions Angular CLI: 1.6.0 Node: 9.2.0 OS: win32 x64 Angular: 5.1.0 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dy...
Opengraph URL: https://github.com/angular/angular-cli/issues/8779
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Existing App does not get Service Worker capabilities","articleBody":"### 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","author":{"url":"https://github.com/bogacg","@type":"Person","name":"bogacg"},"datePublished":"2017-12-07T10:12:39Z","url":"https://github.com/angular/angular-cli/issues/8779"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:70f864aa-fb59-34ce-b43d-1d3b36b4cbc3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B04:34CAB:14F0413:1AC0562:6B01334E |
| html-safe-nonce | ba28ff1a4c846ba1d300c9c5abae611525b9e7716eb25475fad5fda706496455 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjA0OjM0Q0FCOjE0RjA0MTM6MUFDMDU2Mjo2QjAxMzM0RSIsInZpc2l0b3JfaWQiOiI4OTM5Nzk3MjY1MzEzMjQ4MDc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 142ba53a67d0103fc5f325340ecb3217b3d6a5b0ebf3859ee3db05296c3be284 |
| hovercard-subject-tag | issue:280072099 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/8779/issue_layout |
| twitter:image | https://opengraph.githubassets.com/48eb6d8cef601e6cbd76934e764b4779ba148d9a5ce08f448fb193903acd4816/angular/angular-cli/issues/8779 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/48eb6d8cef601e6cbd76934e764b4779ba148d9a5ce08f448fb193903acd4816/angular/angular-cli/issues/8779 |
| og:image:alt | Versions Angular CLI: 1.6.0 Node: 9.2.0 OS: win32 x64 Angular: 5.1.0 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bogacg |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width