node_modules/@angular/fire/firebase.app.module.d.ts中的错误? [英] ERROR in node_modules/@angular/fire/firebase.app.module.d.ts?

查看:129
本文介绍了node_modules/@angular/fire/firebase.app.module.d.ts中的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编译器完成后收到此错误.我尝试卸载并重新安装firebase @ angular/fire,但无法修复它.我对此错误感到困惑.找不到解决方法

I Get this Error after the completion of compiler.I have tried uninstalling and reinstalling the firebase @angular/fire but can't get it fixed . I am confused about the error.I can't find it's solution

"@angular/cli": "~10.2.0",
"firebase": "^8.0.0",
"@angular/fire": "^6.0.3",


ERROR in node_modules/@angular/fire/firebase.app.module.d.ts:2:10 - error TS2614: Module '"../../firebase"' has no exported member 'analytics'. Did you mean to use 'import analytics from "../../firebase"' instead?

2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
           ~~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:21 - error TS2614: Module '"../../firebase"' has no exported member 'app'. Did you mean to use 'import app from "../../firebase"' instead?

2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
                      ~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:26 - error TS2614: Module '"../../firebase"' has no exported member 'auth'. Did you mean to use 'import
auth from "../../firebase"' instead?

2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
                           ~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:32 - error TS2614: Module '"../../firebase"' has no exported member 'database'. Did you mean to use 'import database from "../../firebase"' instead?

2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';
                                 ~~~~~~~~
node_modules/@angular/fire/firebase.app.module.d.ts:2:42 - error TS2614: Module '"../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../firebase"' instead?

2 import { analytics, app, auth, database, firestore, functions, messaging, performance, remoteConfig, storage } from 'firebase/app';

node_modules/@angular/fire/firestore/document/document.d.ts:5:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../../firebase"' instead?

5 import { firestore } from 'firebase/app';
           ~~~~~~~~~
node_modules/@angular/fire/firestore/collection-group/collection-group.d.ts:2:10 - error TS2614: Module '"../../../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../../../firebase"' instead?

2 import { firestore } from 'firebase/app';
           ~~~~~~~~~
node_modules/@angular/fire/firestore/firestore.d.ts:8:10 - error TS2614: Module '"../../../firebase"' has no exported member 'firestore'. Did you mean to use
'import firestore from "../../../firebase"' instead?

8 import { firestore } from 'firebase/app';

希望我能得到很好的答复.

I hope i get good response.

推荐答案

不确定为什么这个问题被否决了. @穆罕默德·梅迪(Muhammad Mehdi)的担忧是正确的.我只是遇到了同样的问题.

Not sure why this question got downvoted. @Muhammad Mehdi's concern is valid. I just ran into the same issue.

此不兼容问题已在官方@angular/fire GitHub页面上标记为此处

This incompatibility issue has been flagged on the official @angular/fire GitHub page here

建议的解决方法对我有用.简而言之:

The proposed workaround worked for me. In short:

  1. 卸载当前的@angular/fire软件包(npm uninstall @angular/fire)

根据维护者 6.0.4版本一旦发布(截止到今天),我们可以切换回最新的正式版本.同时,这应该可以让您继续前进.

Once version 6.0.4 will be out (not yet as of today), we can switch back to the latest official release. Meanwhile this should keep you going.

这篇关于node_modules/@angular/fire/firebase.app.module.d.ts中的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆