Network-information pluginを使いたかったのですが、古いionic-nativeバージョンがありました。 は、だから私はやった:ctorParameters.mapはIonic 2の関数エラーではありません
私が行うとき、ネットワーク情報プラグインは今2.2.12.
しかし、中に変更されたため
npm rm --save ionic native
npm install --save [email protected]
npm update
:ionic serve --watch
コンソールはスロー:ctorParameters.mapが機能
私のイオンではありませんCLIのバージョンは次のとおりです。2.1.14
そして、私のpackage.json:
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "2.1.1",
"@angular/compiler": "2.1.1",
"@angular/compiler-cli": "2.1.1",
"@angular/core": "2.1.1",
"@angular/forms": "2.1.1",
"@angular/http": "2.1.1",
"@angular/platform-browser": "2.1.1",
"@angular/platform-browser-dynamic": "2.1.1",
"@angular/platform-server": "2.1.1",
"@ionic/storage": "^1.1.6",
"angular2-fullcalendar": "^1.1.1",
"angularfire2": "^2.0.0-beta.6-preview",
"firebase": "^3.6.4",
"ionic-angular": "2.0.0-rc.3",
"ionic-native": "^2.5.1",
"ionicons": "3.0.0",
"jquery-ui": "^1.12.1",
"rxjs": "5.0.0-beta.12",
"soundcloud": "^3.1.2",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "0.0.45",
"typescript": "2.0.6"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-statusbar",
"cordova-plugin-console",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"description": "Mindfulness: An Ionic project"
}
どのような解決策ですか?
ありがとうございます!
EDIT:
私はRC4にアップデートしようとしました:(2.0.0-rc.4 (2016-12-15))
私は更新され、ガイドを使用し、その後、コンソールが私をスロー:
A recent change occured in ionic-app-scripts.
Please create a new file "main.ts" containing the content of "main.dev.ts", and then delete the deprecated files.
だから私それを探して、私はこれを見つけたissue 私はこのステップを行い、私がしたとき:ionic serve --watch
それはビルドするが、アプリケーションは読み込まれていないとC onsoleスロー:
GET http://localhost:8100/build/main.css (index):33
GET http://localhost:8100/build/main.js (index):45
GET http://localhost:8100/build/main.js 404 (Not Found)(index):45
全く新しいプロジェクト – inspired
Mmから始める必要があるかもしれませんが、問題は、アプリが既にアルファ版でプレイストアに公開されていることです。そして、それはアップロードの更新を可能にする一意のIDを持っています。プレイストアで新しいアプリを再設定する必要がありますか? git hubリポジトリはどうですか? –