我一直尝试用ionic build android --prod
来构建我的项目,但是我总是遇到相同的错误:
并且当我将IonicApp
添加到我的App.Module.ts
时,我会收到错误:
@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
任何想法我如何解决这个问题?