Skip to content

Karma builder in 20.1 CLI version cannot execute 3rd party templates with structural directives #62573

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy