I am getting [ng] ERROR while ionic serve in No NgModule metadata found for ‘AppModule’ this error. I searched a lot but not getting exact solution. I will be highly thankful if someone give me any idea or any help. I am sharing IONIC and other environment.
Ionic Framework : @ionic/angular 5.3.3
@angular-devkit/build-angular : 0.1001.2
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.1.2
@ionic/angular-toolkit : 2.3.3
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v12.18.4 (C:\Program Files\nodejs\node.exe)
npm : 6.14.6
OS : Windows 10
My app.module.ts file code
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
Can anyone suggest where i am wrong as i globally installed latest version of IONIC, CORDOVA, NODE of all. I am trying from past 2 days but not succeed. I am attaching screenshot pls find.
Thanks in ADVANCE.