You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Karma builder in 20.1 CLI version cannot execute 3rd party templates with structural directives #62573
Error: NG0303: Can't bind to 'ngSwitch' since it isn't a known property of 'ng-container' (used in the '_CellComponent' component template).
1. If 'ng-container' is an Angular component and it has the 'ngSwitch' input, then verify that it is included in the '@Component.imports' of this component.
2. If 'ng-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@Component.schemas' of this component.
Reacted by Daniel Kimmich, Maximilian Köller, Rayk Bajohr, Kaspar Fenner, Leon Eck, , Loris Janner, Patrick, Derk Muenchhausen, MrMikePawlowski and 3 more
Same issue here after upgrading to Angular CLI 20.1.0.
Error: NG0303: Can't bind to 'ngTemplateOutlet' since it isn't a known property of 'ng-container' (used in the '_XhrButtonComponent' component template).
1. If 'ng-container' is an Angular component and it has the 'ngTemplateOutlet' input, then verify that it is included in the '@Component.imports' of this component.
2. If 'ng-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@Component.schemas' of this component.
I'm also seeing another issue after upgrading to v20.1.
In one of our components (ZgcODataTableTemplateComponent), we define an @Input() dataset, which worked fine before.
Now it throws the following error during test execution:
TypeError: Cannot set property dataset of [object HTMLElement] which has only a getter
at EmulatedEncapsulationDomRenderer2.setProperty (http://localhost:9876/base/node_modules/@angular/platform-browser/fesm2022/dom_renderer.mjs:614:16)
at BaseAnimationRenderer.setProperty (http://localhost:9876/base/node_modules/@angular/animations/fesm2022/browser.mjs:3988:27)
at setDomProperty (http://localhost:9876/base/node_modules/@angular/core/fesm2022/debug_node.mjs:8073:18)
at ɵɵdomProperty (http://localhost:9876/base/node_modules/@angular/core/fesm2022/debug_node.mjs:22759:9)
at _ZgcODataTableTemplateComponent_Template (ng:///_ZgcODataTableTemplateComponent/ɵcmp.js:452:52)
at executeTemplate (http://localhost:9876/base/node_modules/@angular/core/fesm2022/debug_node.mjs:7913:9)
at refreshView (http://localhost:9876/base/node_modules/@angular/core/fesm2022/debug_node.mjs:8943:13)
at detectChangesInView (http://localhost:9876/base/node_modules/@angular/core/fesm2022/debug_node.mjs:9163:9)
at detectChangesInViewIfAttached (http://localhost:9876/base/node_modules/@angular/core/fesm2022/debug_node.mjs:9123:5)
at detectChangesInComponent (http://localhost:9876/base/node_modules/@angular/core/fesm2022/debug_node.mjs:9111:5)
Not sure if it's related, but both issues appeared after the upgrade.
Reacted by Maximilian Köller, Kaspar Fenner, Akash Sonune, MrMikePawlowski and xidedix
Activity
alan-agius4 commentedon Jul 10, 2025
This seems to be caused by a change in the framework.
JeanMeche commentedon Jul 10, 2025
Fwiw, there is no issue when the tests run with
aot: true.xutzin commentedon Jul 11, 2025
Same issue here after upgrading to Angular CLI 20.1.0.
I'm also seeing another issue after upgrading to v20.1.
In one of our components (
ZgcODataTableTemplateComponent), we define an@Input() dataset, which worked fine before.Now it throws the following error during test execution:
Not sure if it's related, but both issues appeared after the upgrade.
JoostK commentedon Jul 16, 2025
There is a bug specific to JIT compilation, in particular this line:
angular/packages/compiler/src/jit_compiler_facade.ts
Line 660 in 527bd77
It should use
.some(...). Changing it locally fixes the reproduction.fix(compiler): fix detection of directive deps in JIT
fix(compiler): fix detection of directive deps in JIT
fix(compiler): fix detection of directive deps in JIT (#62666)
fix(compiler): fix detection of directive deps in JIT (angular#62666)
angular-automatic-lock-bot commentedon Aug 17, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.