René's URL Explorer Experiment


Title: fix: better error messages for NgFor · Issue #14641 · angular/angular · GitHub

Open Graph Title: fix: better error messages for NgFor · Issue #14641 · angular/angular

X Title: fix: better error messages for NgFor · Issue #14641 · angular/angular

Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request Current behavior While there have been a lot of improvements in the error messa...

Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request Current behavior While there have been ...

X Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request Current behavior While...

Opengraph URL: https://github.com/angular/angular/issues/14641

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix: better error messages for NgFor","articleBody":"**I'm submitting a ...**  (check one with \"x\")\r\n\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request\r\n\r\n**Current behavior**\r\nWhile there have been a lot of improvements in the error messages space in Angular, it turns out that there's one case left that can causes many hours of debugging, because the error message is confusing.\r\n\r\nWhen forgetting the `let` keyword in `NgFor`'s micro syntax, that error message points the developer in a wrong direction. **Basically, doing this**:\r\n\r\n```\r\n\u003cANY *ngFor=\"item of items\">\u003c/ANY>\r\n```\r\n\r\nThrows this error:\r\n\r\n```\r\nCan't bind to 'ngFor' since it isn't a known property of 'ANY'.\r\n1. If 'ANY' is an Angular component and it has 'ngFor' input, then verify that it is part of this module.\r\n2. If 'ANY' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.\r\n```\r\n\r\nThis error messages usually occurs when one forgets to add/export a directive/component (in this case `NgFor`), but the actually issue is that the developer forgot the `let` keyword in the micro syntax.\r\n\r\nUnfortunately this caused me once 1.5 hours of debugging and wondering why Angular thinks I haven't declared `NgFor` anywhere, while it is in fact properly setup.\r\n\r\nI'm seeing more and more people running into this, so I thought it's worth bringing up.\r\n\r\n**Expected behavior**\r\nIt would be cool if we can throw a more specific error message, or maybe extend the existing one to tell the developer that she needs to double-check the micro syntax.\r\n\r\n**Plunker for reproduction\r\n\r\nhttps://plnkr.co/edit/SAI2cYUjuiVXcg4sL8vz?p=preview (check the console)\r\n\r\n* **Angular version:** 2.x.\r\n","author":{"url":"https://github.com/0x-r4bbit","@type":"Person","name":"0x-r4bbit"},"datePublished":"2017-02-22T12:09:41Z","url":"https://github.com/angular/angular/issues/14641"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f275e050-de47-a437-5472-ef0f54035f8c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA7AA:29AEE8:ABC583:E69403:6B00EFD4
html-safe-nonce85cf8b826a145c7b096755d384e56b744edb04353aa47fe57b7c3732d7e930aa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0FBOjI5QUVFODpBQkM1ODM6RTY5NDAzOjZCMDBFRkQ0IiwidmlzaXRvcl9pZCI6IjQ5MDMxNTY3NTE2MzA2NTk1NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2a48bd0311e867ffbe9222ea19fc8d6f06cbed82f023ef854a435c357f327887
hovercard-subject-tagissue:209435769
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/14641/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0864d401e7b35aa9b478c2309fadb60cbdc08becd6b91856fe6f8f9f92687a10/angular/angular/issues/14641
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0864d401e7b35aa9b478c2309fadb60cbdc08becd6b91856fe6f8f9f92687a10/angular/angular/issues/14641
og:image:altI'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request Current behavior While there have been ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username0x-r4bbit
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/14641#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F14641
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F14641
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/14641
Reloadhttps://github.com/angular/angular/issues/14641
Reloadhttps://github.com/angular/angular/issues/14641
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests140 (140)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/14641
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/14641
fix: better error messages for NgForhttps://github.com/angular/angular/issues/14641#top
P4A relatively minor issue that is not relevant to core functionshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P4%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: ng-template and *microsyntaxhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20ng-template%20and%20*microsyntax%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
hotlist: error messageshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20error%20messages%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/0x-r4bbit
0x-r4bbithttps://github.com/0x-r4bbit
on Feb 22, 2017https://github.com/angular/angular/issues/14641#issue-209435769
https://plnkr.co/edit/SAI2cYUjuiVXcg4sL8vz?p=previewhttps://plnkr.co/edit/SAI2cYUjuiVXcg4sL8vz?p=preview
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Feb 22, 2017https://github.com/angular/angular/issues/14641#issuecomment-281655346
https://github.com/0x-r4bbit
0x-r4bbithttps://github.com/0x-r4bbit
on Feb 22, 2017https://github.com/angular/angular/issues/14641#issuecomment-281656682
@DzmitryShylovichhttps://github.com/DzmitryShylovich
vicbhttps://github.com/vicb
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
hotlist: error messageshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20error%20messages%22
severity1: confusinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity1%3A%20confusing%22
open for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22open%20for%20contributions%22
on Feb 23, 2017https://github.com/angular/angular/issues/14641#event-973635662
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Feb 23, 2017https://github.com/angular/angular/issues/14641#issuecomment-281938285
@vicbhttps://github.com/vicb
https://github.com/BrunoViera
BrunoVierahttps://github.com/BrunoViera
on Apr 2, 2017https://github.com/angular/angular/issues/14641#issuecomment-291019373
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Apr 8, 2017https://github.com/angular/angular/issues/14641#issuecomment-292727275
@BrunoVierahttps://github.com/BrunoViera
https://github.com/emeldar
emeldarhttps://github.com/emeldar
on Apr 12, 2017https://github.com/angular/angular/issues/14641#issuecomment-293668824
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Apr 12, 2017https://github.com/angular/angular/issues/14641#issuecomment-293670476
https://github.com/angular/angular/pullshttps://github.com/angular/angular/pulls
https://github.com/emeldar
emeldarhttps://github.com/emeldar
on Apr 12, 2017https://github.com/angular/angular/issues/14641#issuecomment-293671177
@Toxicablehttps://github.com/Toxicable
chuckjazhttps://github.com/chuckjaz
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Apr 13, 2017https://github.com/angular/angular/issues/14641#event-1042376142
https://github.com/doctorstal
doctorstalhttps://github.com/doctorstal
on May 10, 2017https://github.com/angular/angular/issues/14641#issuecomment-300465342
https://plnkr.co/edit/y1R2KaRRnfMFXJH2mCe1https://plnkr.co/edit/y1R2KaRRnfMFXJH2mCe1
https://github.com/Math3v
Math3vhttps://github.com/Math3v
on Jun 7, 2017https://github.com/angular/angular/issues/14641#issuecomment-306778990
@Toxicablehttps://github.com/Toxicable
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Jun 8, 2017https://github.com/angular/angular/issues/14641#issuecomment-306985771
@Math3vhttps://github.com/Math3v
https://github.com/Math3v
Math3vhttps://github.com/Math3v
on Jun 8, 2017https://github.com/angular/angular/issues/14641#issuecomment-307076260
@Toxicablehttps://github.com/Toxicable
IgorMinarhttps://github.com/IgorMinar
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
on Jan 24, 2018https://github.com/angular/angular/issues/14641#event-1438505778
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Jan 24, 2018https://github.com/angular/angular/issues/14641#event-1438505830
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: ng-template and *microsyntaxhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20ng-template%20and%20*microsyntax%22
on Mar 10, 2020https://github.com/angular/angular/issues/14641#event-3116276985
AndrewKushnirhttps://github.com/AndrewKushnir
open for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22open%20for%20contributions%22
on May 19, 2020https://github.com/angular/angular/issues/14641#event-3354022596
jelbournhttps://github.com/jelbourn
P4A relatively minor issue that is not relevant to core functionshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P4%22
severity1: confusinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity1%3A%20confusing%22
on Oct 1, 2020https://github.com/angular/angular/issues/14641#event-3830199698
https://github.com/jessicajaniuk
jessicajaniukhttps://github.com/jessicajaniuk
on Aug 8, 2022https://github.com/angular/angular/issues/14641#issuecomment-1208725035
jessicajaniukhttps://github.com/jessicajaniuk
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 8, 2022https://github.com/angular/angular/issues/14641#event-7151024131
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 8, 2022https://github.com/angular/angular/issues/14641#issuecomment-1240923681
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 8, 2022https://github.com/angular/angular/issues/14641#event-7349304922
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/14641
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/14641
P4A relatively minor issue that is not relevant to core functionshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P4%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: ng-template and *microsyntaxhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20ng-template%20and%20*microsyntax%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
hotlist: error messageshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22hotlist%3A%20error%20messages%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.