Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(@angular/material/core): CanUpdateErrorState and mixinErrorState are removed #30262

Open
1 task done
DerBasler opened this issue Jan 2, 2025 · 1 comment
Open
1 task done
Labels
needs triage This issue needs to be triaged by the team

Comments

@DerBasler
Copy link

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

18

Description

Disclaimer: I am not sure if this is a bug or just needs some documentation. (I could not find anything about this in the recent changelog)

@angular/material/core used to export CanUpdateErrorState and mixinErrorState which it does not anymore.

I can see it getting deprecated here: DerBasler@94306f3#diff-606a332883a0dda9b5ef3fa3473ab14ab59820c71ae2b04f801ec4d1d4e0ccb4R85

and removed here: DerBasler@5b8d8c3

But there is no mention in the changelog that I could find and no example how to migrate this.

I will post my findings here once I know more.

Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

Expected Behavior

Preferably would be some automatic migration in the cli otherwise a checkpoint in the migration checklist from 18 to 19

Actual Behavior

Build fails

Environment

  • Angular: 19.0.6
  • CDK/Material: 19.0.4
  • Browser(s): - (fails to build)
  • Operating System: Windows
@DerBasler DerBasler added the needs triage This issue needs to be triaged by the team label Jan 2, 2025
@DerBasler
Copy link
Author

A migration example: DerBasler@6ef5959

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant