Title: NG8011: Node matches the "[matSuffix], [matIconSuffix]" slot of the "MatFormField" component, but will not be projected into the specific slot because the surrounding @if has more than one node at its root. · Issue #53477 · angular/angular · GitHub
Open Graph Title: NG8011: Node matches the "[matSuffix], [matIconSuffix]" slot of the "MatFormField" component, but will not be projected into the specific slot because the surrounding @if has more than one node at its root. · Issue #53477 · angular/angular
X Title: NG8011: Node matches the "[matSuffix], [matIconSuffix]" slot of the "MatFormField" component, but will not be projected into the specific slot because the surrounding @if has more than one node at its root. · Issue #53477 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description I have the following code, which has worked fine and continues to work fine, but is recently throwing a compilation warning: Open Graph Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description I have the following code, which has worked fine and continues to work fine, but is recently th...
X Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description I have the following code, which has worked fine and continues to work fine, but is recently th...
Opengraph URL: https://github.com/angular/angular/issues/53477
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NG8011: Node matches the \"[matSuffix], [matIconSuffix]\" slot of the \"MatFormField\" component, but will not be projected into the specific slot because the surrounding @if has more than one node at its root.","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncompiler\r\n\r\n### Is this a regression?\r\n\r\nYes\r\n\r\n### Description\r\n\r\nI have the following code, which has worked fine and continues to work fine, but is recently throwing a compilation warning:\r\n```html\r\n \u003cmat-form-field>\r\n \u003cinput matInput formControlName=\"...\">\r\n\r\n @if (something; as something) {\r\n \u003cimg [src]=\"...\">\r\n \u003cbutton mat-icon-button matIconSuffix>\u003cmat-icon>clear\u003c/mat-icon>\u003c/button>\r\n }\r\n \u003c/mat-form-field>\r\n```\r\n\r\nIn latest Angular `17.0.6` I'm getting a compilation warning: `NG8011: Node matches the \"[matSuffix], [matIconSuffix]\" slot of the \"MatFormField\" component, but will not be projected into the specific slot because the surrounding @if has more than one node at its root.`\r\n\r\n\r\nBut the icon suffix is projected just fine. So the warning seems inaccurate.\r\n\r\n### Please provide the exception or error you saw\r\n\r\n```true\r\n▲ [WARNING] NG8011: Node matches the \"[matSuffix], [matIconSuffix]\" slot of the \"MatFormField\" component, but will not be projected into the specific slot because the surrounding @if has more than one node at its root. To project the node in the right slot, you can:\r\n\r\n1. Wrap the content of the @if block in an \u003cng-container/> that matches the \"[matSuffix], [matIconSuffix]\" selector. \r\n2. Split the content of the @if block across multiple @if blocks such that each one only has a single projectable node at its root.\r\n3. Remove all content from the @if block, except for the node being projected.\r\n\r\nThis check can be disabled using the `extendedDiagnostics.checks.controlFlowPreventingContentProjection = \"suppress\" compiler option.` [plugin angular-compiler]\r\n\r\n src/app/my-component/my-component.component.html:101:6:\r\n 101 │ \u003cbutton mat-icon-button matIconSuffix ...\r\n ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 17.0.6 (latest)\r\nNode: 20.9.0\r\nPackage Manager: npm 10.2.3\r\nOS: linux x64\r\nAngular: 17.0.6 (latest)\r\n@angular/material 17.0.3 (latest)\r\ntypescript 5.2.2\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\nUsing ESBuild (new application builder).\r\nI believe this is a regression in `17.0.6` as I didn't see this warning in Angular `17.0.5`.\r\nSee https://github.com/angular/angular/pull/53387 https://github.com/angular/angular/pull/53190","author":{"url":"https://github.com/anisabboud","@type":"Person","name":"anisabboud"},"datePublished":"2023-12-10T06:54:59Z","url":"https://github.com/angular/angular/issues/53477"}
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:49df6315-0f57-c003-157c-27b1abbecdb9 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id AD06:D0E46:1330534:1953631:6B011D95 html-safe-nonce 5f854607e3147161851bf9fdb03ea1842db743fe005d44146d0a78580786dd56 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDA2OkQwRTQ2OjEzMzA1MzQ6MTk1MzYzMTo2QjAxMUQ5NSIsInZpc2l0b3JfaWQiOiI3MTQ4ODg1NjE2MTU4MTIxMzY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 361f3c498e7502b6188bfd4ed3f0ce775e34f77b789c4800d427f664fb2259e9 hovercard-subject-tag issue:2034245323 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/53477/issue_layout twitter:image https://opengraph.githubassets.com/492247b8cfd250c6fc3ff6b3f470d1c7b3eef715e91965142615bee386eb6b37/angular/angular/issues/53477 twitter:card summary_large_image og:image https://opengraph.githubassets.com/492247b8cfd250c6fc3ff6b3f470d1c7b3eef715e91965142615bee386eb6b37/angular/angular/issues/53477 og:image:alt Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description I have the following code, which has worked fine and continues to work fine, but is recently th... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username anisabboud 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
URLs of crawlers that visited me.