Open
Description
Command
test
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
20.0
Description
When upgrading to cli@20.1 it is not possible for karma builder to execute 3rd party component's template.
Everything works fine in 20.0.
Minimal Reproduction
git clone https://github.com/destus90/karma-builder-spec-template-execute
npm ci
npm test
Exception or Error
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.
Your Environment
Angular CLI: 20.1.0
Node: 24.3.0
Package Manager: npm 11.4.2
OS: win32 x64
Angular: 20.1.0
... animations, build, cdk, cli, common, compiler, compiler-cli
... core, forms, localize, platform-browser
... platform-browser-dynamic, router
Package Version
------------------------------------------------------
@angular-devkit/architect 0.2001.0
@angular-devkit/core 20.1.0
@angular-devkit/schematics 20.1.0
@schematics/angular 20.1.0
rxjs 7.8.2
typescript 5.8.3
zone.js 0.15.0
Anything else relevant?
No response