小编mar*_*kus的帖子

“FirebaseApp”类型中缺少属性“performance”,但“App”类型中需要

当我尝试运行全新安装的 Angular 7.2 和 Firebase 时,我似乎收到此错误:

ERROR in node_modules/@angular/fire/firebase.app.module.d.ts(17,22): error TS2420: Class 'FirebaseApp' incorrectly implements interface 'App'.
  Property 'performance' is missing in type 'FirebaseApp' but required in type 'App'.
Run Code Online (Sandbox Code Playgroud)

尝试在不同版本的 @angular/fire 和 firebase 之间切换,但没有找到有效的组合。

当前 package.json :

{
  "name": "my-app",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "compile:server": "webpack --config webpack.server.config.js --progress --colors",
    "serve:ssr": "node dist/server",
    "build:ssr": "npm run build:client-and-server-bundles && npm run compile:server",
    "build:client-and-server-bundles": "ng …
Run Code Online (Sandbox Code Playgroud)

firebase typescript angular

4
推荐指数
1
解决办法
1951
查看次数

标签 统计

angular ×1

firebase ×1

typescript ×1