8000 Karma builder in 20.1 CLI version cannot execute 3rd party templates with structural directives · Issue #62573 · angular/angular · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ 8000
Skip to content
Karma builder in 20.1 CLI version cannot execute 3rd party templates with structural directives #62573
Open
@destus90

Description

@destus90

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: testingIssues related to Angular testing features, such as TestBed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0