Skip to content

ERROR Error: ASSERTION ERROR: Expecting LContainer [Expected=> true == false <=Actual] #53115

Description

@Kr0san89

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

Yes

Description

Update @angular/core from 17.0.3 to 17.0.4 brings up Error:
"ASSERTION ERROR: Expecting LContainer [Expected=> true == false <=Actual]"

In the Debugger i did see that it is coming from that line of code
image
Which than fails as containerIndex = 26

And the check assertLContainer fails as it expects to have an Array
image

I did see from the diff that there were significant changes regarding ɵɵrepeater but as i don't have enought insights into the framework i'm unsure how this situation arises
98376f2#diff-5e12de636669e6c8598b3d8c617cf94514faf4ab51192a8f7a64a403584b8c27R251

Please provide a link to a minimal reproduction of the bug

I tried to isolate the Problem but as that part of the code is quite nested with a lot of complexity i wasn't able to do so.

Please provide the exception or error you saw

ERROR Error: ASSERTION ERROR: Expecting LContainer [Expected=> true == false <=Actual]
at throwError (core.mjs:392:11)
at assertEqual (core.mjs:343:9)
at assertLContainer (core.mjs:2342:5)
at getLContainer (core.mjs:20545:18)
at Module.ɵɵrepeater (core.mjs:20508:32)
at MatTabGroup_Template (tabs.mjs:96:103)
at executeTemplate (core.mjs:12159:9)
at refreshView (core.mjs:13392:13)
at detectChangesInView (core.mjs:13617:9)
at detectChangesInViewIfAttached (core.mjs:13580:5)

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.0.0
Node: 18.17.0
Package Manager: npm 9.6.7
OS: win32 x64

Angular: 17.0.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0
@angular-devkit/build-angular   17.0.0
@angular-devkit/core            17.0.0
@angular-devkit/schematics      17.0.0
@angular/cdk                    17.0.1
@angular/cli                    17.0.0
@angular/google-maps            17.0.1
@angular/material               17.0.1
@schematics/angular             17.0.0
ng-packagr                      17.0.0
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.2

Anything else?

It might have something todo with the material tabs, but i couldn't figure out how it relates at least the stacktrace shows it. But breaking is the @angular/core if you turn it back to 17.0.3 it works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compilerIssues related to `ngc`, Angular's template compilerarea: coreIssues related to the framework runtimecore: control flowIssues related to the built-in control flow (@if, @for, @switch)regressionIndicates than the issue relates to something that worked in a previous version

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions