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(migration): Invalid import after migration #25672

Closed
1 task
mcalmus opened this issue Sep 21, 2022 · 3 comments
Closed
1 task

bug(migration): Invalid import after migration #25672

mcalmus opened this issue Sep 21, 2022 · 3 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@mcalmus
Copy link
Contributor

mcalmus commented Sep 21, 2022

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

No response

Description

Migration from Material 14 to Material 15 left a compile error

Reproduction

Steps to reproduce:

  1. Create an Angular/Material 14 project
  2. Have MatOptionSelectionChange import in some component
  3. Migrate to Angular/Material 15

Expected Behavior

Code compiles

Actual Behavior

Compile error:

'"@angular/material/legacy-core"; has no exported member named 'MatLegacyOptionSelectionChange'. Did you mean 'MatOptionSelectionChange'?

import {MatLegacyOptionSelectionChange as MatOptionSelectionChange } from '@angular/material/legacy-core';

Environment

  • Angular: 15.0.0-next.2
  • CDK/Material: 15.0.0-next.1
  • Browser(s): n/a
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows
@mcalmus mcalmus added the needs triage This issue needs to be triaged by the team label Sep 21, 2022
@json-derulo
Copy link
Contributor

fixed by #25673

@crisbeto
Copy link
Member

Closing as fixed.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

3 participants