Title: AsyncPipe and KeyvaluePipe don't work well together in fullTemplateTypeCheck · Issue #35743 · angular/angular · GitHub
Open Graph Title: AsyncPipe and KeyvaluePipe don't work well together in fullTemplateTypeCheck · Issue #35743 · angular/angular
X Title: AsyncPipe and KeyvaluePipe don't work well together in fullTemplateTypeCheck · Issue #35743 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/core@9.0.4 Is this a regression? Not sure, never turned on full template type check on before v9 Description using ... | async | keyvalue throws a type error 🔬 Minimal...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/core@9.0.4 Is this a regression? Not sure, never turned on full template type check on before v9 Description using ... | async ...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/core@9.0.4 Is this a regression? Not sure, never turned on full template type check on before v9 Description using ... | async ...
Opengraph URL: https://github.com/angular/angular/issues/35743
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AsyncPipe and KeyvaluePipe don't work well together in fullTemplateTypeCheck","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Affected Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->\r\n\u003c!-- ✍️edit: --> The issue is caused by package @angular/core@9.0.4\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\n\u003c!-- ✍️--> Not sure, never turned on full template type check on before v9\r\n\r\n\r\n### Description\r\n\r\nusing `... | async | keyvalue` throws a type error\r\n\r\n## 🔬 Minimal Reproduction\r\n\u003c!--\r\nPlease create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-issue-repro2\r\n-->\r\nstackblitz does not seem to do full template type check or ivy, right?\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>ERROR in src/app/recent/recent.component.html:1:36 - error TS2769: No overload matches this call.\r\n The last overload gave the following error.\r\n Argument of type '{ [dayDiff: number]: { [repo: string]: object[]; }; } | null' is not assignable to parameter of type 'Map\u003cunknown, unknown>'. \r\n Type 'null' is not assignable to type 'Map<unknown, unknown>'.\r\n\r\n1 <div *ngFor=\"let groupByDayDiff of groups | async | keyvalue\">\r\n ~~~~~~~~~~~~~~~\r\n\r\n src/app/recent/recent.component.ts:17:16\r\n 17 templateUrl: './recent.component.html',\r\n ~~~~~~~~~~~~~~~~~~~~~~~~~\r\n Error occurs in the template of component RecentComponent.\r\n\u003c/code>\u003c/pre>\r\n\r\n`groups` is of type `Observable\u003c{[dayDiff: number]: {[repo: string]: object[]}}>`\r\nIt used to be `Observable\u003cany>` and it didn't error then. I guess `any` hid the error previously.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>Package Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.3\r\n@angular-devkit/build-angular 0.900.4\r\n@angular-devkit/build-optimizer 0.900.4\r\n@angular-devkit/build-webpack 0.900.4\r\n@angular-devkit/core 9.0.3\r\n@angular-devkit/schematics 9.0.4\r\n@angular/cdk 9.0.1\r\n@angular/fire 5.4.2\r\n@angular/flex-layout 9.0.0-beta.29\r\n@angular/material 9.0.1\r\n@ngtools/webpack 9.0.4\r\n@schematics/angular 9.0.4\r\n@schematics/update 0.900.4\r\nrxjs 6.5.4\r\ntypescript 3.7.5\r\nwebpack 4.41.2\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\n","author":{"url":"https://github.com/princemaple","@type":"Person","name":"princemaple"},"datePublished":"2020-02-28T05:46:01Z","url":"https://github.com/angular/angular/issues/35743"}
| 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:42208820-bc7e-6577-2fa1-60755b24f639 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2E4:29AEE8:BA5AD4:F9BBE1:6B00F564 |
| html-safe-nonce | 53f9a249f352fbadb5ec9c1a40ee2ae6f9f7a6beb134d1c80c3c373608ec2cce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkU0OjI5QUVFODpCQTVBRDQ6RjlCQkUxOjZCMDBGNTY0IiwidmlzaXRvcl9pZCI6IjQ2NTA0NzU1NDM4ODcxODk0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dbc35880a2d8b03a7e5da509dae21d32c2fc0f7df9d568fe0ba7ec99378f090e |
| hovercard-subject-tag | issue:572534549 |
| 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/35743/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4ed7380bfea1f998f8d7a2c9261bd4eab8ccf318b09671b4fcb8f6dba73636c/angular/angular/issues/35743 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4ed7380bfea1f998f8d7a2c9261bd4eab8ccf318b09671b4fcb8f6dba73636c/angular/angular/issues/35743 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/core@9.0.4 Is this a regression? Not sure, never turned on full template type check on before v9 Description using ... | async ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | princemaple |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width