在离子应用程序中,所有npm软件包都已删除并使用npm install重新安装。现在运行离子服务显示大约十几个与firebase和angularfire2相关的错误。
要调试,
然而,仍然没有......
还有一些与不可用的对等依赖关系有关的npm警告,我在下面附上,我不太清楚如何处理...
这是主app的package.json依赖列表:
"dependencies": {
"@angular/compiler": "^4.4.4",
"@angular/compiler-cli": "^4.4.4",
"@angular/core": "^4.4.4",
"@angular/forms": "^4.4.4",
"@angular/http": "^4.4.4",
"@angular/platform-browser": "^4.4.4",
"@angular/platform-browser-dynamic": "^4.4.4",
"@ionic-native/app-availability": "^4.3.0",
"@ionic-native/call-number": "^4.3.0",
"@ionic-native/clipboard": "^4.3.0",
"@ionic-native/core": "^4.3.0",
"@ionic-native/device": "^4.3.0",
"@ionic-native/facebook": "^4.3.0",
"@ionic-native/geolocation": "^4.3.0",
"@ionic-native/in-app-browser": "^4.3.0",
"@ionic-native/sms": "^4.3.0",
"@ionic-native/social-sharing": "^4.3.0",
"@ionic-native/splash-screen": "^4.3.0",
"@ionic-native/status-bar": "^4.3.0",
"@ionic/storage": "2.0.1",
"angularfire2": "^5.0.0-rc.1",
"babel-code-frame": "^6.26.0",
"call-number": "^1.0.1",
"chalk": "^2.1.0",
"cordova-android": "^6.3.0",
"cordova-browser": "^5.0.0",
"cordova-clipboard": "^1.1.0",
"cordova-ios": "^4.5.1",
"cordova-plugin-appavailability": "^0.4.2",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-console": "^1.1.0",
"cordova-plugin-device": "^1.1.6",
"cordova-plugin-facebook4": "^1.9.1",
"cordova-plugin-geolocation": "^2.4.3",
"cordova-plugin-queries-schemes": "^0.1.5",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-statusbar": "^2.2.3",
"cordova-plugin-whitelist": "^1.3.2",
"cordova-plugin-x-socialsharing": "^5.2.0",
"cordova-sms-plugin": "^0.1.11",
"debug": "^3.1.0",
"es6-promise-plugin": "^4.1.1",
"firebase": "^4.5.0",
"ionic-angular": "^3.7.1",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"ios-sim": "^6.1.2",
"json5": "^0.5.1",
"minimatch": "^3.0.4",
"promise-polyfill": "6.0.2",
"rxjs": "^5.4.3",
"sw-toolbox": "3.6.0",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@angular/common": "^4.4.3",
"@ionic/app-scripts": "3.0.0",
"install": "^0.10.1",
"npm": "^5.5.0",
"typescript": "^2.5.3"
},
"peerDependencies": {},
答案 0 :(得分:1)
对于angularfire2版本5.0.0+,不推荐使用FirebaseListObservable
和FirebaseObjectObservable
。请恢复为4.0.0。+版本
答案 1 :(得分:0)
好的,在@alltej的帮助下对此进行故障排除后,看起来我对npm update命令不够谨慎,导致AngularFire2和Firebase npm软件包都升级到版本号发生变化的版本导致一些重大变化。
例如,在整个应用程序中使用的FirebaseObjectObservable已在第5版中弃用。回滚到先前版本解决了问题/