Closed
Description
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
I've updated angular from version 14 to 15.
There was lot of changes to the imports, but there are two which failed to update correctly:
import {MatDialog} from '@angular/material/dialog';
changed to:
import {MMatLegacyDialog as MatDialog from '@@angular/material/legacy-dialog;
(double MM missing } after MatDialog and missing ' at the end.
and also this
import {FloatLabelType} from '@angular/material/form-field';
to this
import {LegacyFloatLabelType} from '@angular/material/legacy-form-field';
missin as FloatLabelType
For the second one I think problem could be that here
Reproduction
Steps to reproduce:
- Have angular 14 with file containing
import {FloatLabelType} from '@angular/material/form-field';
import {MatDialog} from '@angular/material/dialog';
imports - run ng update @angular/material@15
- see broken imports
Expected Behavior
Imports should be correctly migrated.
Actual Behavior
Imports are broken as mentioned above.
Environment
- Angular: 14 to 15
- CDK/Material: 15
- Browser(s): N/A
- Operating System (e.g. Windows, macOS, Ubuntu): Windows