Title: QueryList<> interface is not iterable in TypeScript, AGAIN · Issue #17414 · angular/angular · GitHub
Open Graph Title: QueryList<> interface is not iterable in TypeScript, AGAIN · Issue #17414 · angular/angular
X Title: QueryList<> interface is not iterable in TypeScript, AGAIN · Issue #17414 · angular/angular
Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request When I try to iterate the QueryList (e.g. ContentChildren), I get this error: [ts] Type must have a '[Symbol.iterator]()' method that return...
Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request When I try to iterate the QueryList (e.g. ContentChildren), I get this error: [ts] Type must have a ...
X Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request When I try to iterate the QueryList (e.g. ContentChildren), I get this error: [ts] Typ...
Opengraph URL: https://github.com/angular/angular/issues/17414
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"QueryList\u003c> interface is not iterable in TypeScript, AGAIN","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...** (check one with \"x\")\r\n```\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request\r\n```\r\n\r\nWhen I try to iterate the QueryList (e.g. ContentChildren), I get this error: `[ts] Type must have a '[Symbol.iterator]()' method that returns an iterator.`\r\n\r\nThis is an error:\r\n\r\n\r\nI think the issue #7022 is incorrectly closed, as the problem is still present. Even though I'm targeting the ES2015, I still can't use for...of loop. Please fix this.\r\n\r\nNote that the docs specifically mention: \r\n\r\n> Implements an iterable interface, therefore it can be used in both ES6 javascript for (var i of items) loops as well as in Angular templates with *ngFor=\"let i of myList\".\r\n\r\n**Angular CLI: 1.0.3\r\nAngular: 4.1.2\r\nTypescript: 2.2.2\r\nVS Code 1.13.0**\r\n\r\nThis is my tsconfig.json:\r\n\r\n{\r\n \"compileOnSave\": false,\r\n \"compilerOptions\": {\r\n \"outDir\": \"./dist/out-tsc\",\r\n \"baseUrl\": \"src\",\r\n \"sourceMap\": true,\r\n \"declaration\": false,\r\n \"moduleResolution\": \"node\",\r\n \"emitDecoratorMetadata\": true,\r\n \"experimentalDecorators\": true,\r\n \"target\": \"es2015\",\r\n \"typeRoots\": [\r\n \"node_modules/@types\"\r\n ],\r\n \"lib\": [\r\n \"es2016\",\r\n \"dom\"\r\n ],\r\n \"alwaysStrict\": true\r\n }\r\n}\r\n\r\nThis is my \"tsconfig.app.json:\r\n\r\n{\r\n \"extends\": \"../tsconfig.json\",\r\n \"compilerOptions\": {\r\n \"outDir\": \"../out-tsc/app\",\r\n \"module\": \"es2015\",\r\n \"baseUrl\": \"\",\r\n \"types\": []\r\n },\r\n \"exclude\": [\r\n \"test.ts\",\r\n \"**/*.spec.ts\"\r\n ]\r\n}\r\n","author":{"url":"https://github.com/tx8821","@type":"Person","name":"tx8821"},"datePublished":"2017-06-12T08:45:35Z","url":"https://github.com/angular/angular/issues/17414"}
| 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:3f8d1c73-6e1b-fe94-5fc9-6f93f78c6f45 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C684:38C5CF:28BE7E6:33B0968:6B018314 |
| html-safe-nonce | 4c68a5acec6be768a2fc39911abc3f59ad81c3a701fd6943f2f5bd9a68439b20 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjg0OjM4QzVDRjoyOEJFN0U2OjMzQjA5Njg6NkIwMTgzMTQiLCJ2aXNpdG9yX2lkIjoiNzI3OTA2MjI4MjQ0Mzc4NDk4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9d14ec272545af4abc99feb2d363c05346f5ad3674e1c4b296f51fce3195584e |
| hovercard-subject-tag | issue:235161916 |
| 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/17414/issue_layout |
| twitter:image | https://opengraph.githubassets.com/267e02b92bb758e9615771e5b3ce54e698f0ff16c09e4ceec18c34a2457acaf1/angular/angular/issues/17414 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/267e02b92bb758e9615771e5b3ce54e698f0ff16c09e4ceec18c34a2457acaf1/angular/angular/issues/17414 |
| og:image:alt | I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request When I try to iterate the QueryList (e.g. ContentChildren), I get this error: [ts] Type must have a ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tx8821 |
| 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