0
我想用Network-information plugin,而且我有一箇舊的離子版本。 所以我做:ctorParameters.map不是Ionic 2上的一個函數錯誤
npm rm --save ionic native
npm install --save [email protected]
npm update
,因爲網絡信息的插件在2.2.12.
但現在改變了,當我做: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"
}
任何解決方案?
非常感謝提前!
編輯:
我試圖更新到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開始,但問題在於該應用程序已在Play商店中以alpha版本發佈。它有一個唯一的ID,允許上傳更新。我應該重新配置Play商店中的新應用嗎?那麼git集線器庫呢? –