我最近将我的Angular
项目升级到了版本8,但我正在努力将angularfire2
升级到支持Angular 8的版本5.2.1。我不断收到错误消息:
TypeError: app.auth is not a function...
我已经尝试卸载并重新安装angularfire2
。我还清除了整个节点模块文件夹,然后重新安装了所有软件包。
这是依赖项的样子:
"dependencies": {
"@angular/pwa": "^0.13.0",
"core-js": "^2.6.0",
"firebase-admin": "^7.0.0",
"firebase-functions": "^2.2.0",
"material-bottom-nav": "^1.0.6",
"ng": "0.0.0-rc6",
"ngx-infinite-scroll": "^7.0.1",
"time-ago-pipe": "^1.3.2",
"ts-deepcopy": "^0.1.4",
"tslib": "^1.9.0",
"update": "^0.7.4",
"web-animations-js": "^2.3.1",
"zone.js": "^0.8.29"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.800.6",
"@angular/animations": "^8.0.3",
"@angular/cdk": "^8.0.1",
"@angular/cli": "^8.0.6",
"@angular/common": "^8.0.3",
"@angular/compiler": "^8.0.3",
"@angular/compiler-cli": "^8.0.3",
"@angular/core": "^8.0.3",
"@angular/fire": "^5.2.1",
"@angular/flex-layout": "^8.0.0-beta.26",
"@angular/forms": "^8.0.3",
"@angular/language-service": "^8.0.3",
"@angular/material": "^8.0.1",
"@angular/platform-browser": "^8.0.3",
"@angular/platform-browser-dynamic": "^8.0.3",
"@angular/platform-server": "^8.0.3",
"@angular/router": "^8.0.3",
"@angular/service-worker": "^8.0.3",
"@types/core-js": "^0.9.46",
"@types/jasmine": "2.8.7",
"@types/lodash": "^4.14.126",
"@types/node": "^10.12.30",
"codelyzer": "~4.3.0",
"firebase": "^6.3.1",
"hammerjs": "^2.0.8",
"i": "^0.3.5",
"jasmine-core": "~3.1.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.5",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^1.4.0",
"lodash": "^4.17.15",
"npm": "^6.9.0",
"protractor": "~5.3.2",
"rxjs": "^6.5.2",
"ts-node": "~6.0.5",
"tslint": "~5.10.0",
"typescript": "^3.4.5"
},
有人已经升级到angularfire2
版本5.2.1并可以帮助我吗?
答案 0 :(得分:0)
从项目中卸载firebase-admin库解决了该问题。
npm uninstall firebase-admin