执行所有更改日志说明并在执行ionic build
时获得干净ionic serve
后,我得到一个空白页。
浏览器日志不包含任何错误:
Dev server logger closedion-dev.js:113:9
GET http://localhost:8100/build/js/es6-shim.min.js [HTTP/1.1 404 Not Found 16ms]
GET http://localhost:8100/build/js/Reflect.js [HTTP/1.1 404 Not Found 15ms]
GET http://localhost:8100/build/js/zone.js [HTTP/1.1 404 Not Found 14ms]
GET http://localhost:8100/build/js/app.bundle.js [HTTP/1.1 404 Not Found 12ms]
GET http://localhost:8100/build/js/es6-shim.min.js [HTTP/1.1 404 Not Found 1ms]
GET http://localhost:8100/build/js/Reflect.js [HTTP/1.1 404 Not Found 1ms]
GET http://localhost:8100/build/js/zone.js [HTTP/1.1 404 Not Found 1ms]
GET http://localhost:8100/build/js/app.bundle.js [HTTP/1.1 404 Not Found 1ms]
我试图通过输入一些alert()
来调查离子应用失败的位置。我的主应用程序的构造函数顶部有一个,但这不会被调用。如何追踪失败的位置?
我的app.module.ts看起来像这样:
import { Storage } from "@ionic/storage";
import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { VeeUApp } from './app.component';
import { MediaItemData } from '../providers/item-data';
import { UserData } from '../providers/user-data';
import { LoginPage } from '../pages/login/login';
import { ModeratePage } from '../pages/moderate/moderate';
import { FollowPage } from '../pages/follow/follow';
import { SignupPage } from '../pages/signup/signup';
import { TutorialPage } from '../pages/tutorial/tutorial';
import { PhotoPage } from '../pages/photo/photo';
import { SettingsPage } from '../pages/settings/settings';
import { AboutPage } from '../pages/about/about';
import { VeeUPage } from '../pages/veeu/veeu';
import { MyItemsPage } from '../pages/my-items/my-items';
import { BookmarksPage } from '../pages/bookmarks/bookmarks';
import { ProfilePage } from '../pages/profile/profile';
import { CheckReportedPage } from '../pages/checkreported/checkreported';
import { Camera } from 'ionic-native';
import { Http } from '@angular/http';
@NgModule({
declarations: [
VeeUApp,
LoginPage,
ModeratePage,
SignupPage,
TutorialPage,
PhotoPage,
SettingsPage,
AboutPage,
VeeUPage,
MyItemsPage,
BookmarksPage,
ProfilePage,
CheckReportedPage,
FollowPage
],
imports: [
IonicModule.forRoot(VeeUApp, [
Http,
UserData,
MediaItemData
])
],
bootstrap: [IonicApp],
entryComponents: [
VeeUApp,
LoginPage,
ModeratePage,
SignupPage,
TutorialPage,
PhotoPage,
SettingsPage,
AboutPage,
VeeUPage,
MyItemsPage,
BookmarksPage,
ProfilePage,
CheckReportedPage,
FollowPage
],
providers: [UserData, MediaItemData, Storage]
})
export class AppModule {}