Ionic Cordova - undefined不能用作条目组件

时间:2017-06-18 03:16:06

标签: angularjs cordova ionic-framework ionic2

我试图运行一个离子应用程序而且我得到以下内容:

enter image description here

编辑:rm -rf Node_Modules摆脱了第一个错误:

enter image description here

我有一个主页,另一个名为flashing的页面和一个短信页面。没有什么看起来"关闭"关于这段代码给我。

我的app.module.ts代码:

import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import {TextingPage} from '../pages/texting/texting';
import { SMS } from '@ionic-native/sms';
import { HttpModule } from '@angular/http';
import {FlashingPage} from '../pages/flashing/flashing';

@NgModule({

  declarations: [
    MyApp,
    HomePage,
    TextingPage,
    FlashingPage
  ],

  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
        HttpModule,
  ],



bootstrap: [IonicApp],

  entryComponents: [
    MyApp,
    HomePage,
    TextingPage,
    FlashingPage,
    IonicModule.forRoot(MyApp)
  ],

  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
  ]

})
export class AppModule {}

0 个答案:

没有答案