Title: @angular/pwa cannot refresh pwa after rebuild - Driver.
Open Graph Title: @angular/pwa cannot refresh pwa after rebuild - Driver.
X Title: @angular/pwa cannot refresh pwa after rebuild - Driver.
Description: I'm submitting a... [x] Bug report Current behavior I create a new angular 6 project with the cli and adding the pwa with ng add @angular/pwa I run ng build --prod I run http-server -p 8080 dist/angular6/ current behavior: the app starts...
Open Graph Description: I'm submitting a... [x] Bug report Current behavior I create a new angular 6 project with the cli and adding the pwa with ng add @angular/pwa I run ng build --prod I run http-server -p 8080 dist/an...
X Description: I'm submitting a... [x] Bug report Current behavior I create a new angular 6 project with the cli and adding the pwa with ng add @angular/pwa I run ng build --prod I run http-server -p 8080 dis...
Opengraph URL: https://github.com/angular/angular/issues/23742
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@angular/pwa cannot refresh pwa after rebuild - Driver.\u003canonymous> (ngsw-worker.js:1988) property 'id' of undefined","articleBody":"## I'm submitting a...\r\n\u003c!-- Check one of the following options with \"x\" -->\r\n\u003cpre>\u003ccode>[x] Bug report\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\n1) I create a new angular 6 project with the cli and adding the pwa with `ng add @angular/pwa`\r\n2) I run `ng build --prod`\r\n3) I run `http-server -p 8080 dist/angular6/`\r\n\r\ncurrent behavior: the app starts at http://localhost:8080/ and i can see the browser downloading all the files including the service workers, if i put the browser offline i can still see the app and the resources fetched by the sw.\r\n\r\n4) I change the html of the app.component.html\r\n5) I run `ng build --prod`\r\n6) I run `http-server -p 8080 dist/angular6/`\r\n7) Refresh the browser in http://localhost:8080/\r\n\r\nI get this error: \r\n\r\n```\r\nngsw-worker.js:1988 Uncaught (in promise) TypeError: Cannot read property 'id' of undefined\r\n at Driver.\u003canonymous> (ngsw-worker.js:1988)\r\n at Generator.next (\u003canonymous>)\r\n at __awaiter (ngsw-worker.js:1755)\r\n at new Promise (\u003canonymous>)\r\n at __awaiter (ngsw-worker.js:1751)\r\n at Driver.updateClient (ngsw-worker.js:1985)\r\n at Driver.\u003canonymous> (ngsw-worker.js:2224)\r\n at Generator.next (\u003canonymous>)\r\n at fulfilled (ngsw-worker.js:1752)\r\n```\r\n\r\n## Environment\r\n\r\n\u003cpre>\u003ccode>\r\n{\r\n \"name\": \"angular6\",\r\n \"version\": \"0.0.0\",\r\n \"scripts\": {\r\n \"ng\": \"ng\",\r\n \"start\": \"ng serve\",\r\n \"build\": \"ng build --prod\",\r\n \"sw\":\"http-server -p 8080 dist/angular6/\",\r\n \"test\": \"ng test\",\r\n \"lint\": \"ng lint\",\r\n \"e2e\": \"ng e2e\"\r\n },\r\n \"private\": true,\r\n \"dependencies\": {\r\n \"@angular/animations\": \"^6.0.0\",\r\n \"@angular/common\": \"^6.0.0\",\r\n \"@angular/compiler\": \"^6.0.0\",\r\n \"@angular/core\": \"^6.0.0\",\r\n \"@angular/forms\": \"^6.0.0\",\r\n \"@angular/http\": \"^6.0.0\",\r\n \"@angular/platform-browser\": \"^6.0.0\",\r\n \"@angular/platform-browser-dynamic\": \"^6.0.0\",\r\n \"@angular/pwa\": \"^0.6.0\",\r\n \"@angular/router\": \"^6.0.0\",\r\n \"core-js\": \"^2.5.4\",\r\n \"rxjs\": \"^6.0.0\",\r\n \"zone.js\": \"^0.8.26\",\r\n \"@angular/service-worker\": \"^6.0.0\"\r\n },\r\n \"devDependencies\": {\r\n \"@angular/compiler-cli\": \"^6.0.0\",\r\n \"@angular-devkit/build-angular\": \"~0.6.0\",\r\n \"typescript\": \"~2.7.2\",\r\n \"@angular/cli\": \"~6.0.0\",\r\n \"@angular/language-service\": \"^6.0.0\",\r\n \"@types/jasmine\": \"~2.8.6\",\r\n \"@types/jasminewd2\": \"~2.0.3\",\r\n \"@types/node\": \"~8.9.4\",\r\n \"codelyzer\": \"~4.2.1\",\r\n \"jasmine-core\": \"~2.99.1\",\r\n \"jasmine-spec-reporter\": \"~4.2.1\",\r\n \"karma\": \"~1.7.1\",\r\n \"karma-chrome-launcher\": \"~2.2.0\",\r\n \"karma-coverage-istanbul-reporter\": \"~1.4.2\",\r\n \"karma-jasmine\": \"~1.1.1\",\r\n \"karma-jasmine-html-reporter\": \"^0.2.2\",\r\n \"protractor\": \"~5.3.0\",\r\n \"ts-node\": \"~5.0.1\",\r\n \"tslint\": \"~5.9.1\"\r\n }\r\n}\r\n\r\n\r\nBrowser:\r\n- [x] Chrome (desktop) version 66.0.3359.139\r\n \r\nFor Tooling issues:\r\n- Node version: 10.0.0\r\n- NPM version: 6.0.0\r\n- Platform: OSX\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/andreaveronesi","@type":"Person","name":"andreaveronesi"},"datePublished":"2018-05-07T09:23:50Z","url":"https://github.com/angular/angular/issues/23742"}
| 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:874bc800-e7c6-7873-c1d1-7acf39bc4476 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDB8:3CBB3E:AD09DD:DB5BFC:6B013107 |
| html-safe-nonce | 00598a4af6200bbf527415b2d1a70dc2d236aee2c460d3bf4ce2e6ab25d1a123 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREI4OjNDQkIzRTpBRDA5REQ6REI1QkZDOjZCMDEzMTA3IiwidmlzaXRvcl9pZCI6IjUwMDA3Nzk1OTczMzIxNjQ4NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a9892dcdc84520acf6095eb26b04f72c31cd226c0141723fb31980c0826da590 |
| hovercard-subject-tag | issue:320734717 |
| 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/23742/issue_layout |
| twitter:image | https://opengraph.githubassets.com/22fbddb2dd6c5968693314cb82cca33ea4d2fe71a416d417a76148d5528bdd2e/angular/angular/issues/23742 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/22fbddb2dd6c5968693314cb82cca33ea4d2fe71a416d417a76148d5528bdd2e/angular/angular/issues/23742 |
| og:image:alt | I'm submitting a... [x] Bug report Current behavior I create a new angular 6 project with the cli and adding the pwa with ng add @angular/pwa I run ng build --prod I run http-server -p 8080 dist/an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreaveronesi |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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