试图用--prod构建我的离子应用程序,但是它不起作用

时间:2019-12-19 18:28:55

标签: javascript angular typescript ionic-framework

我一直尝试用ionic build android --prod来构建我的项目,但是我总是遇到相同的错误:

enter image description here

并且当我将IonicApp添加到我的App.Module.ts时,我会收到错误:

enter image description here

@NgModule({
declarations: [
MyApp,
  OverlayPortal,
  ClickBlock,
  EventsfilterComponent,
  FooterComponent,
  ImgWithSpinnerComponent,
  NotificationsComponent,
  SpotifyComponent,
  IonicApp
  ],
 imports: [
  IonicModule.forRoot(MyApp,{
      backButtonText: '',
      backButtonIcon: 'ios-arrow-back',
      scrollPadding: false
  },),
  ComponentsModule,
  BrowserAnimationsModule,
  IonicImageViewerModule,
AngularFireDatabaseModule,
  AngularFireAuthModule,
  NotificationsPageModule,
  HttpModule,
  ConversationPageModule,
  EventPageModule,
  GroupPageModule,
  InteractionsPageModule,
AngularFireModule.initializeApp(firebaseConfig),
  SuperTabsModule.forRoot(),
IonicStorageModule.forRoot({
  name: '__mydb',
     driverOrder: ['indexeddb', 'sqlite', 'websql']
}),
  PipesModule


Ionic:

Ionic CLI          : 5.4.4 (/usr/local/lib/node_modules/ionic)
Ionic Framework    : ionic-angular 3.9.9
@ionic/app-scripts : 3.2.4

Cordova:

Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 8.1.0, browser 5.0.3, ios 5.0.1
Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, 
(and 30 other plugins)

Utility:

cordova-res : not installed
native-run  : 0.2.8 (update available: 0.3.0)

System:

Android SDK Tools : 26.1.1 (/Users/leonardoprivat/Library/Android/sdk)
ios-sim           : 8.0.2
NodeJS            : v10.16.3 (/usr/local/bin/node)
npm               : 6.9.0
OS                : macOS Mojave
Xcode             : Xcode 11.0 Build version 11A420aenter code here

任何想法我如何解决这个问题?

0 个答案:

没有答案