I always get the following : Cannot find module “.” as an error on my localhost when trying to run my application.
here is my app.component.ts
"import { Component } from ‘@angular/core’;
import { Platform } from ‘ionic-angular/umd’;
import { StatusBar } from ‘@ionic-native/status-bar’;
import { SplashScreen } from ‘@ionic-native/splash-screen’;
import { LandingPage } from ‘…/pages/landing/landing’;
@Component({
templateUrl: ‘app.html’
})
export class MyApp {
rootPage:any = LandingPage;
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
platform.ready().then( () =>
{
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
statusBar.styleDefault();
splashScreen.hide();
});
}
}"
and my app.module.ts
"import { NgModule, ErrorHandler } from ‘@angular/core’;
import { BrowserModule } from ‘@angular/platform-browser’;
import { IonicApp, IonicModule, IonicErrorHandler } from ‘ionic-angular/umd’;
import { MyApp } from ‘./app.component’;
// pages
import { AboutPage } from ‘…/pages/about/about’;
import { DiscoveryPage } from ‘…/pages/discovery/discovery’;
import { TabsPage } from ‘…/pages/tabs/tabs’;
import { DetailPage } from ‘…/pages/detail/detail’;
import { LandingPage } from ‘…/pages/landing/landing’;
import { StatusBar } from ‘@ionic-native/status-bar’;
import { SplashScreen } from ‘@ionic-native/splash-screen’;
@NgModule({
declarations: [
MyApp,
AboutPage,
DiscoveryPage,
TabsPage,
DetailPage,
LandingPage
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
AboutPage,
DiscoveryPage,
TabsPage,
DetailPage,
LandingPage
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler}
]
})
export class AppModule {}"