René's URL Explorer Experiment


Title: NG 21 + Vitest + Non-stadanlone component with async pipe · Issue #65665 · angular/angular · GitHub

Open Graph Title: NG 21 + Vitest + Non-stadanlone component with async pipe · Issue #65665 · angular/angular

X Title: NG 21 + Vitest + Non-stadanlone component with async pipe · Issue #65665 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? Yes Description With Angular 21, I can't test (with vitest) a non-standalone component using the Async pipe. I get the following error: X [ERROR] NG8004:...

Open Graph Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? Yes Description With Angular 21, I can't test (with vitest) a non-standalone component using the Async pipe. I ge...

X Description: Which @angular/* package(s) are the source of the bug? common Is this a regression? Yes Description With Angular 21, I can't test (with vitest) a non-standalone component using the Async pipe. ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NG 21 + Vitest + Non-stadanlone component with async pipe","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncommon\n\n### Is this a regression?\n\nYes\n\n### Description\n\nWith Angular 21, I can't test (with vitest) a non-standalone component using the Async pipe. I get the following error:\n\n```\nX [ERROR] NG8004: No pipe found with name 'async'.\nTo fix this, import the \"AsyncPipe\" class from \"@angular/common\" and add it to the \"imports\" array of the module declaring the component. [plugin angular-compiler]                                                                                                                                                                 \n\n    src/app/async-test/async-test.html:1:9:\n      1 │ \u003cp>{{v | async }}\u003c/p>\n        ╵          ~~~~~                                                                                                                                          \n\n  Error occurs in the template of component AsyncTestComponent.\n\n    src/app/async-test/async-test.ts:6:15:\n      6 │   templateUrl: './async-test.html',\n        ╵                ~~~~~~~~~~~~~~~~~~~     \n```\n\nHere is the full code:\n\nTest\n```\ndescribe('AsyncTestComponent', () => {\n  let component: AsyncTestComponent;\n  let fixture: ComponentFixture\u003cAsyncTestComponent>;\n\n  beforeEach(async () => {\n    await TestBed.configureTestingModule({\n      imports: [CommonModule, AsyncPipe ],\n      declarations: [AsyncTestComponent]\n    })\n    .compileComponents();\n\n    fixture = TestBed.createComponent(AsyncTestComponent);\n    component = fixture.componentInstance;\n    await fixture.whenStable();\n  });\n\n  it('should create', () => {\n    expect(component).toBeTruthy();\n  });\n});\n```\n\nComponent:\n```\n@Component({\n  selector: 'app-async-test',\n  templateUrl: './async-test.html',\n  styleUrl: './async-test.css',\n  standalone: false\n})\nexport class AsyncTestComponent {\n  protected readonly v = of(1);\n}\n```\n\nHTML:\n```\n\u003cp>{{v | async }}\u003c/p>\n```\n\n\n### Please provide a link to a minimal reproduction of the bug\n\nng new --> add a non standalone component and use the async pipe in it then run ng test\n\n### Please provide the exception or error you saw\n\n```true\nI should be able to test my non-stadanlone component (using AsyncPipe) in angular 21.\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI       : 21.0.0\nAngular           : 21.0.0\nNode.js           : 22.16.0\nPackage Manager   : npm 10.9.2\nOperating System  : win32 x64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package                   │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build            │ 21.0.0            │ ^21.0.0           │\n│ @angular/cli              │ 21.0.0            │ ^21.0.0           │\n│ @angular/common           │ 21.0.0            │ ^21.0.0           │\n│ @angular/compiler         │ 21.0.0            │ ^21.0.0           │\n│ @angular/compiler-cli     │ 21.0.0            │ ^21.0.0           │\n│ @angular/core             │ 21.0.0            │ ^21.0.0           │\n│ @angular/forms            │ 21.0.0            │ ^21.0.0           │\n│ @angular/platform-browser │ 21.0.0            │ ^21.0.0           │\n│ @angular/router           │ 21.0.0            │ ^21.0.0           │\n│ rxjs                      │ 7.8.2             │ ~7.8.0            │\n│ typescript                │ 5.9.3             │ ~5.9.2            │\n│ vitest                    │ 4.0.13            │ ^4.0.8            │\n└───────────────────────────┴───────────────────┴───────────────────\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/Scipionh","@type":"Person","name":"Scipionh"},"datePublished":"2025-11-26T12:51:28Z","url":"https://github.com/angular/angular/issues/65665"}

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:341132f7-99e3-91b4-1b91-f32bfd140c50
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8E60:3DCD28:109E732:161541D:6B01E147
html-safe-nonce672b5ea82c942b3a444434824058cf0e5b93f92076b7de5b8a7e6ef08038e4e1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTYwOjNEQ0QyODoxMDlFNzMyOjE2MTU0MUQ6NkIwMUUxNDciLCJ2aXNpdG9yX2lkIjoiMTIxOTEyMDU1ODg4OTg4NjAyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd254c53b4303e9711c5366e59f4ab4b3b9b143752cea26fe107295cded7c50f0
hovercard-subject-tagissue:3667390784
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/65665/issue_layout
twitter:imagehttps://opengraph.githubassets.com/930175accd5f22a199d946b888ca68b1916101aba2284adbefe5d12b684ca04d/angular/angular/issues/65665
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/930175accd5f22a199d946b888ca68b1916101aba2284adbefe5d12b684ca04d/angular/angular/issues/65665
og:image:altWhich @angular/* package(s) are the source of the bug? common Is this a regression? Yes Description With Angular 21, I can't test (with vitest) a non-standalone component using the Async pipe. I ge...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameScipionh
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/65665#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F65665
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%2F65665
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/65665
Reloadhttps://github.com/angular/angular/issues/65665
Reloadhttps://github.com/angular/angular/issues/65665
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests142 (142)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/65665
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/65665
NG 21 + Vitest + Non-stadanlone component with async pipehttps://github.com/angular/angular/issues/65665#top
area: docsRelated to the documentationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20docs%22
area: testingIssues related to Angular testing features, such as TestBedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20testing%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/Scipionh
Scipionhhttps://github.com/Scipionh
on Nov 26, 2025https://github.com/angular/angular/issues/65665#issue-3667390784
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Nov 26, 2025https://github.com/angular/angular/issues/65665#issuecomment-3581298707
JoostKhttps://github.com/JoostK
needs reproductionThis issue needs a reproduction in order for the team to investigate furtherhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%20reproduction%22
on Nov 26, 2025https://github.com/angular/angular/issues/65665#event-21195599072
https://github.com/Scipionh
Scipionhhttps://github.com/Scipionh
on Nov 26, 2025https://github.com/angular/angular/issues/65665#issuecomment-3581812110
https://stackblitz.com/edit/hefgnomhhttps://stackblitz.com/edit/hefgnomh
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Nov 26, 2025https://github.com/angular/angular/issues/65665#issuecomment-3581963961
https://github.com/Scipionh
Scipionhhttps://github.com/Scipionh
on Nov 26, 2025https://github.com/angular/angular/issues/65665#issuecomment-3582115097
kirjshttps://github.com/kirjs
area: testingIssues related to Angular testing features, such as TestBedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20testing%22
on Nov 26, 2025https://github.com/angular/angular/issues/65665#event-21200221212
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Nov 26, 2025https://github.com/angular/angular/issues/65665#event-21200221838
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Nov 26, 2025https://github.com/angular/angular/issues/65665#issuecomment-3582136579
https://github.com/Scipionh
Scipionhhttps://github.com/Scipionh
on Nov 27, 2025https://github.com/angular/angular/issues/65665#issuecomment-3584533220
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Nov 27, 2025https://github.com/angular/angular/issues/65665#issuecomment-3585211121
alan-agius4https://github.com/alan-agius4
area: docsRelated to the documentationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20docs%22
needs reproductionThis issue needs a reproduction in order for the team to investigate furtherhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%20reproduction%22
on Dec 3, 2025https://github.com/angular/angular/issues/65665#event-21331776829
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
needsTriagehttps://github.com/angular/angular/milestone/83
on Dec 3, 2025https://github.com/angular/angular/issues/65665#event-21331777358
JeanMechehttps://github.com/JeanMeche
TestBed imports not shared with non-standalone declarations (AOT) #66007https://github.com/angular/angular/issues/66007
on Dec 11, 2025https://github.com/angular/angular/issues/65665#event-21509798227
https://github.com/pshurygin
pshuryginhttps://github.com/pshurygin
on Feb 5, 2026https://github.com/angular/angular/issues/65665#issuecomment-3853163137
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Feb 5, 2026https://github.com/angular/angular/issues/65665#issuecomment-3853223988
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Feb 5, 2026https://github.com/angular/angular/issues/65665#issuecomment-3853335384
@JeanMechehttps://github.com/JeanMeche
https://github.com/pshurygin
pshuryginhttps://github.com/pshurygin
on Feb 5, 2026https://github.com/angular/angular/issues/65665#issuecomment-3853622149
emersionhttps://github.com/emersion
on Sep 8, 2026https://github.com/angular/angular/issues/65665#event-30739078176
chore: migrate to Vitesthttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/1db58bbc26cc6703e4ca85fb214349b85f52a63a
1db58bbhttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/1db58bbc26cc6703e4ca85fb214349b85f52a63a
chore: migrate to Vitesthttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/32eb0e84bed92638cef4adba90dc51e8a0748cf2
32eb0e8https://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/32eb0e84bed92638cef4adba90dc51e8a0748cf2
chore: migrate to Vitesthttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/bcd36eb55b5bae3d53e657f790d5cce59db36d86
bcd36ebhttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/bcd36eb55b5bae3d53e657f790d5cce59db36d86
chore: migrate to Vitesthttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/676e139dfa2100dbc75ede2fa4724b020bef0e74
676e139https://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/676e139dfa2100dbc75ede2fa4724b020bef0e74
chore: migrate to Vitesthttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/469961d30c4dba4c06b9397d16c9bc78b224cc04
469961dhttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/469961d30c4dba4c06b9397d16c9bc78b224cc04
chore: migrate to Vitesthttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/9904f19c9b60a4d088ab5c5538deb080f9059a25
9904f19https://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/9904f19c9b60a4d088ab5c5538deb080f9059a25
chore: migrate to Vitesthttps://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/832bd42ef98b73aa1ac00e29695a6403a0e91079
832bd42https://github.com/OpenRailAssociation/netzgrafik-editor-frontend/commit/832bd42ef98b73aa1ac00e29695a6403a0e91079
https://github.com/hlovdal
hlovdalhttps://github.com/hlovdal
on Oct 26, 2026https://github.com/angular/angular/issues/65665#issuecomment-6412517002
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/65665
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/65665
area: docsRelated to the documentationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20docs%22
area: testingIssues related to Angular testing features, such as TestBedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20testing%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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.