我使用以下命令升级了ionic 2.1.17 to 2.1.18
:
npm uninstall ionic -g
npm uninstall cordova -g
npm cache clean
npm install cordova -g
npm install ionic -g
之后,我安装了一个新的离子与sidemenus:
ionic start --v2 test_project sidemenu
现在在test_project中我替换了原始项目的src(包含离子2.1.17)
目前我有离子2.1.18 ..
问题是现在我只得到一个空白屏幕。
****当我在firefox中点击它时它工作正常但在chrome中我得到空白页。
在chrome控制台中我得到:
reactive_errors.js:28
It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true
when you set up this control in your component class, the disabled attribute will actually be set in the DOM for
you. We recommend using this approach to avoid 'changed after checked' errors.
Example:
form = new FormGroup({
first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
last: new FormControl('Drew', Validators.required)
});
和
plugin.js:33 Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
**获得大于5的Android版本相同的错误,他们也在安装应用程序时获得空白页。
这是我的系统。信息:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.47
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.9.2
Xcode version: Not installed
请帮助