Title: Ivy: fullTemplateTypeCheck errors with NgIterable · Issue #33527 · angular/angular · GitHub
Open Graph Title: Ivy: fullTemplateTypeCheck errors with NgIterable · Issue #33527 · angular/angular
X Title: Ivy: fullTemplateTypeCheck errors with NgIterable · Issue #33527 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler Is this a regression? This is introduced by Ivy. Description A component with a template looking like: Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler Is this a regression? This is introduced by Ivy. Description A component with a template looking like: X Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler Is this a regression? This is introduced by Ivy. Description A component with a template looking like: <div *ngFor=...
Opengraph URL: https://github.com/angular/angular/issues/33527
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ivy: fullTemplateTypeCheck errors with NgIterable","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\r\nThe issue is caused by package @angular/compiler\r\n\r\n\r\n### Is this a regression?\r\n\r\nThis is introduced by Ivy.\r\n\r\n### Description\r\n\r\nA component with a template looking like:\r\n\r\n```html\r\n\u003cdiv *ngFor=\"let user of users | slice: 0:2 as total\">\r\n {{ total.length }}: {{ user.name }}\r\n\u003c/div>\r\n```\r\n\r\n`ng build --prod` with `fullTemplateTypeCheck: true` throws, as it thinks `length` is not a property of `total`.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nhttps://github.com/cexbrayat/ng-iterable\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nERROR in src/app/app.component.html:2:6 - error TS2339: Property 'length' does not exist on type 'NgIterable\u003cany>'.\r\n Property 'length' does not exist on type 'Iterable\u003cany>'.\r\n\r\n2 {{ total.length }}: {{ user.name }}\r\n ~~~~~~~~~~~~~\r\n\r\n src/app/app.component.ts:5:16\r\n 5 templateUrl: './app.component.html',\r\n ~~~~~~~~~~~~~~~~~~~~~~\r\n Error occurs in the template of component AppComponent.\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.0-rc.0\r\nNode: 12.12.0\r\nOS: darwin x64\r\nAngular: 9.0.0-rc.0\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-rc.0\r\n@angular-devkit/build-angular 0.900.0-rc.0\r\n@angular-devkit/build-optimizer 0.900.0-rc.0\r\n@angular-devkit/build-webpack 0.900.0-rc.0\r\n@angular-devkit/core 9.0.0-rc.0\r\n@angular-devkit/schematics 9.0.0-rc.0\r\n@ngtools/webpack 9.0.0-rc.0\r\n@schematics/angular 9.0.0-rc.0\r\n@schematics/update 0.900.0-rc.0\r\nrxjs 6.5.3\r\ntypescript 3.6.4\r\nwebpack 4.41.2\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\r\nThis is using ng and CLI `9.0.0-rc.0` and `fTTC`, but *not* using `strictTemplates`.\r\n","author":{"url":"https://github.com/cexbrayat","@type":"Person","name":"cexbrayat"},"datePublished":"2019-11-01T09:45:14Z","url":"https://github.com/angular/angular/issues/33527"}
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:c3bde61f-e017-cbbc-cee5-3d0ec2efc337 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id E60E:4279A:D51B84:11F638F:6B010800 html-safe-nonce 43e3276a8b020ed0d1f1dc2ff4df34b93ca9edaa13814a82097130b642d619ab visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjBFOjQyNzlBOkQ1MUI4NDoxMUY2MzhGOjZCMDEwODAwIiwidmlzaXRvcl9pZCI6IjUxOTY5ODQ0MzY1MzY3MDcwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 766a182609ccdaa99057b3e159c7da4e0403c784ee083c65c0b6319582ff1dfc hovercard-subject-tag issue:516011539 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/33527/issue_layout twitter:image https://opengraph.githubassets.com/7a64570feaf7b747962a80dcbdc6fcc88ea8a5e46ac2535936b1c7c386a7296e/angular/angular/issues/33527 twitter:card summary_large_image og:image https://opengraph.githubassets.com/7a64570feaf7b747962a80dcbdc6fcc88ea8a5e46ac2535936b1c7c386a7296e/angular/angular/issues/33527 og:image:alt 🐞 bug report Affected Package The issue is caused by package @angular/compiler Is this a regression? This is introduced by Ivy. Description A component with a template looking like: og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username cexbrayat hostname github.com expected-hostname github.com None cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 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 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.