Closed
Description
Prerequisites
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Codemod version
N/A
Current Behavior
When migrating a standalone starter app, the IonicModule
is left in the imports
array:
import { Component } from '@angular/core';
import { IonApp, IonRouterOutlet } from "@ionic/angular/standalone";
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
standalone: true,
imports: [IonicModule],
})
export class AppComponent {
constructor() { }
}
Expected Behavior
The IonicModule
should be removed from the imports
array if present:
import { Component } from '@angular/core';
import { IonApp, IonRouterOutlet } from "@ionic/angular/standalone";
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
standalone: true,
imports: [IonApp, IonRouterOutlet],
})
export class AppComponent {
constructor() { }
}
Steps to Reproduce
No response
Code Reproduction URL
No response
Additional Information
No response