1.bug1:
ionic2 no component factory found for CoursePage
解决方法:在app.module.ts 中导入该文件
import { CoursePage } from '../pages/course/course'
在@NgModule中declarations加入CoursePage
entryComponents中加入CoursePage
2.Error parsing date: “Fri Aug 25 2017 09:47:16 GMT+0800 (CST)”. Please provide a valid ISO 8601 datetime format: https://www.w3.org/TR/NOTE-datetime
解决方法:把时间格式改成 iso 的形式
在 page.ts中
this.myDate = new Date(Date.now()).toISOString();
在 html 中
<ion-item>
<ion-label> Date </ion-label>
<ion-datetime displayFormat="MM/DD/YYYY" [(ngModel)]="myDate"> </ion-datetime>
</ion-item>
3.httpDemo/src/pages/contact/contact.ts has a @IonicPage decorator, but it does not have a corresponding “NgModule” at /Users/a198/Desktop/angularJSDemo/httpDemo/src/pages/contact/contact.module.ts 如图所示:
4.Error: Uncaught (in promise): Error: Type ContactDetailPage is part of the declarations of 2 modules: AppModule and ContactDetailPageModule! Please consider moving ContactDetailPage to a higher module that imports AppModule and ContactDetailPageModule. You can also create a new NgModule that exports and includes ContactDetailPage then import that NgModule in AppModule and ContactDetailPageModule.
5.libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
具体如下:
2017-09-06 14:39:01.427679+0800 Demo[17994:2912712] Apache Cordova native platform version 4.3.1 is starting.
2017-09-06 14:39:01.429099+0800 Demo[17994:2912712] Multi-tasking -> Device: YES, App: YES
2017-09-06 14:39:01.799137+0800 Demo[17994:2912712] Using UIWebView
2017-09-06 14:39:01.802885+0800 Demo[17994:2912712] [CDVTimer][handleopenurl] 0.154018ms
2017-09-06 14:39:01.810285+0800 Demo[17994:2912712] [CDVTimer][intentandnavigationfilter] 7.296979ms
2017-09-06 14:39:01.810491+0800 Demo[17994:2912712] [CDVTimer][gesturehandler] 0.117004ms
2017-09-06 14:39:01.847378+0800 Demo[17994:2912712] [CDVTimer][splashscreen] 36.832988ms
2017-09-06 14:39:01.853158+0800 Demo[17994:2912712] [CDVTimer][statusbar] 5.618989ms
2017-09-06 14:39:01.857512+0800 Demo[17994:2912712] [CDVTimer][keyboard] 4.155040ms
2017-09-06 14:39:01.857640+0800 Demo[17994:2912712] [CDVTimer][TotalPluginStartup] 54.935992ms
2017-09-06 14:39:02.071512+0800 Demo[17994:2912827] libMobileGestalt MobileGestaltSupport.m:153: pid 17994 (Demo) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-09-06 14:39:02.071750+0800 Demo[17994:2912827] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
2017-09-06 14:39:03.530269+0800 Demo[17994:2912712] Resetting plugins due to page load.
2017-09-06 14:39:03.740434+0800 Demo[17994:2912712] Finished load of: file:///var/containers/Bundle/Application/D3E32AC6-E477-4D53-A2FC-41E0594F8161/Demo.app/www/index.html