-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimebugcore: queriescore: reactivityWork related to fine-grained reactivity in the core frameworkWork related to fine-grained reactivity in the core frameworkcross-cutting: signals
Milestone
Description
Which @angular/* package(s) are the source of the bug?
core, elements
Is this a regression?
Yes
Description
custom element breaks with console errors when the angular component has contentQuery. This shouldn't happen and it should just always return an empty array in case of contentChildren and undefined in case of contentChild to match with the behavior of existing @ContentChildren, @ContentChild decorators.
Please provide a link to a minimal reproduction of the bug
Please provide the exception or error you saw
Cannot read properties of undefined (reading 'propName')
at Object.Another_ContentQueries [as contentQueries]
Please provide the environment you discovered this bug in (run ng version)
@angular-devkit/build-angular 17.2.1
@angular-devkit/core 17.2.1
@angular-devkit/schematics 17.2.1
@angular/cdk 17.2.1
@schematics/angular 17.2.1
rxjs 7.8.1
typescript 5.2.2
zone.js 0.14.4
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimebugcore: queriescore: reactivityWork related to fine-grained reactivity in the core frameworkWork related to fine-grained reactivity in the core frameworkcross-cutting: signals
Type
Projects
Status
Done