René's URL Explorer Experiment


Title: "ng serve" requires restart when template error is fixed · Issue #25912 · angular/angular-cli · GitHub

Open Graph Title: "ng serve" requires restart when template error is fixed · Issue #25912 · angular/angular-cli

X Title: "ng serve" requires restart when template error is fixed · Issue #25912 · angular/angular-cli

Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description If we change a component to a self-closing tag after another error has occured during compilation, it refuses to pick up the changes to...

Open Graph Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description If we change a component to a self-closing tag after another error has occured during compilati...

X Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description If we change a component to a self-closing tag after another error has occured during compilati...

Opengraph URL: https://github.com/angular/angular-cli/issues/25912

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"ng serve\" requires restart when template error is fixed","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\nIf we change a component to a self-closing tag after another error has occured during compilation, it refuses to pick up the changes to the self-closing tag.\r\n\r\nI don't know what area this is in, I chose \"compiler\" because that seemed the closest.\r\n\r\nExample:\r\n\r\nYou call the wrong method in a component:\r\n\r\n`\u003csome-component (onClick)=\"doThis($event)\">\u003c/some-component>`\r\n\r\nYou have not declared `doThis(event)`, and save the HTML.\r\n\r\nThe compilation runs, and fails, due to the method not being implemented.\r\n\r\nYou realize this was supposed to call \"doSomething\", and then return to the component to make your changes.  At the same time, you realize it can use Angular 16's new self-closing tags:\r\n\r\n`\u003csome-component (onClick)=\"doSomething($event)\" />`\r\n\r\nYou save this.  The compiler will still error out, stating now that:\r\n\r\n> X [ERROR] NG9: Property 'doThis' does not exist on type 'SomeCompnent'. [plugin angular-compiler]\r\n\r\nNowhere in the code does it now reference the \"doThis\" mistake.  Everything is saved.\r\n\r\nBut it won't compile anymore.  It requires stopping the \"`ng serve`\" and re-running it.  Then it works fine.\r\n\r\n### Please provide the exception or error you saw\r\n\r\n> X [ERROR] NG9: Property 'doThis' does not exist on type 'SomeCompnent'. [plugin angular-compiler]\r\n\r\nNote \"`doThis`\" does not exist in the HTML anymore.  The file has been saved.  When the compiler runs again, it complains about this.  The HTML now contains `doSomething()`, the correct call.  It is seeing the older version.\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```\r\n@angular-devkit/architect       0.1602.0\r\n@angular-devkit/build-angular   16.2.0\r\n@angular-devkit/core            16.2.0\r\n@angular-devkit/schematics      16.2.0\r\n@angular/cdk                    16.2.1\r\n@angular/cli                    16.2.0\r\n@schematics/angular             16.2.0\r\nrxjs                            7.8.1\r\ntypescript                      5.0.4\r\nzone.js                         0.13.1\r\n```\r\n### Anything else?\r\n\r\nNope.","author":{"url":"https://github.com/psarno","@type":"Person","name":"psarno"},"datePublished":"2023-09-27T16:08:06Z","url":"https://github.com/angular/angular-cli/issues/25912"}

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:e52f3bcb-8fe9-7742-0fdd-5e10483fe655
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB00:3E418A:11BA987:175739C:6B01E44B
html-safe-nonce3592b63f56a8dce112d022de19a9c213cca16d101af823eb1cdb9e5416db08af
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjAwOjNFNDE4QToxMUJBOTg3OjE3NTczOUM6NkIwMUU0NEIiLCJ2aXNpdG9yX2lkIjoiNTU3MzQ3Njk5NjIxMTY2Mzk0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8b5e728585098afd19ef9b45c7013c2aaca481132baa03cead2d3486168d2e65
hovercard-subject-tagissue:1915968876
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-cli/25912/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aa398d0dd6efed4c187bf9c4deb4a741baa4de707eff1977a8c302f0c4278f7d/angular/angular-cli/issues/25912
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aa398d0dd6efed4c187bf9c4deb4a741baa4de707eff1977a8c302f0c4278f7d/angular/angular-cli/issues/25912
og:image:altWhich @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description If we change a component to a self-closing tag after another error has occured during compilati...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepsarno
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/25912#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F25912
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-cli%2Fissues%2F25912
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-cli
Reloadhttps://github.com/angular/angular-cli/issues/25912
Reloadhttps://github.com/angular/angular-cli/issues/25912
Reloadhttps://github.com/angular/angular-cli/issues/25912
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/25912
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/25912
#25940https://github.com/angular/angular-cli/pull/25940
"ng serve" requires restart when template error is fixedhttps://github.com/angular/angular-cli/issues/25912#top
#25940https://github.com/angular/angular-cli/pull/25940
angular/build:applicationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aapplication%22
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
freq3: highhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com/psarno
psarnohttps://github.com/psarno
on Sep 27, 2023https://github.com/angular/angular-cli/issues/25912#issue-1915968876
alan-agius4https://github.com/alan-agius4
angular/angularhttps://github.com/angular/angular
on Sep 27, 2023https://github.com/angular/angular-cli/issues/25912#event-10490012192
alan-agius4https://github.com/alan-agius4
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
freq2: mediumhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
angular/build:applicationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aapplication%22
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
on Sep 29, 2023https://github.com/angular/angular-cli/issues/25912#event-10510490112
alan-agius4https://github.com/alan-agius4
on Sep 29, 2023https://github.com/angular/angular-cli/issues/25912#event-10510506044
alan-agius4https://github.com/alan-agius4
freq3: highhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
freq2: mediumhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
on Sep 29, 2023https://github.com/angular/angular-cli/issues/25912#event-10515623913
clydinhttps://github.com/clydin
fix(@angular-devkit/build-angular): clear diagnostic cache when external templates change with esbuild builders #25940https://github.com/angular/angular-cli/pull/25940
on Oct 3, 2023https://github.com/angular/angular-cli/issues/25912#event-10543660499
clydinhttps://github.com/clydin
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#25940https://github.com/angular/angular-cli/pull/25940
on Oct 4, 2023https://github.com/angular/angular-cli/issues/25912#event-10551421536
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 4, 2023https://github.com/angular/angular-cli/issues/25912#issuecomment-1793259024
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 Nov 4, 2023https://github.com/angular/angular-cli/issues/25912#event-10861374230
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/25912
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/25912
angular/build:applicationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aapplication%22
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
freq3: highhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
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.