本文共 868 字,大约阅读时间需要 2 分钟。
错误信息:
Error
Close
Typescript Error
Module '"D:/Source/node_modules/firebase/index"' has no exported member 'functions'.
D:/Source/node_modules/@angular/fire/firebase.app.module.d.ts
import { InjectionToken } from '@angular/core'; | |
import { app, auth, database, firestore, functions, messaging, storage } from 'firebase/app'; | |
export declare type FirebaseOptions = { |
Ionic Framework: 3.8.0 Ionic Native: 2.9.0 Ionic App Scripts: 3.2.0 Angular Core: 4.4.3 Angular Compiler CLI: 4.4.3 Node: 8.11.3 OS Platform: Windows 10 Navigator Platform: Win32 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
解决办法:
修改firebase版本,把"firebase": "^4.6.1",改为"firebase": "^5.5.7",
修改angular版本,把所有4.4.3改为5.0.0,例如:"@angular/common": "4.4.3",改为"@angular/common": "5.0.0",
修改rxjs版本,把"rxjs": "5.4.2",改为"rxjs": "5.5.2",
转载地址:https://daqiang.blog.csdn.net/article/details/83754940 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!