Typescript Error Module ' Source/node_modules/firebase/index' has no exported member 'functions'
错误信息:
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",
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
