Skip to content

bug(MatPaginator): Control flow changes in @angular/core 17.0.4 broke @angular/components 17.0.1 #28199

Closed
@simeyla

Description

@simeyla

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

17.0.1 (of @angular/core)

Description

The commit for PR angular/angular#52935 changed the function signature for ɵɵrepeater which is used to implement @for control flow. It was part of @angular/core 17.0.4.

The signature removed a parameter, such that any control flow code present in Material 17.0.1 (such as used by MatPaginator) will break at runtime.

All that is needed to fix is a version bump to sync with @angular/core 17.0.4

Reproduction

StackBlitz link:
Steps to reproduce:

  1. Install @angular/core 17.0.4
  2. Install @angular/material 17.0.1
  3. Add MatPaginator

Expected Behavior

No error

Actual Behavior

main.js:50620 TypeError: newCollection[Symbol.iterator] is not a function
at reconcile (main.js:123167:65)

Environment

  • Angular: 17.0.4
  • CDK/Material: 17.0.1
  • Browser(s): All
  • Operating System (e.g. Windows, macOS, Ubuntu): All

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: build & ciRelated the build and CI infrastructure of the project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions