我正在使用angularfirebase2和最新版本^5.0.0-rc.10
以及我的项目配置:
`@angular/cli: 1.4.1
node: 8.10.0
os: win32 x64
@angular/animations: 4.4.6
@angular/cdk: 2.0.0-beta.12
@angular/common: 4.4.6
@angular/compiler: 4.4.6
@angular/core: 4.4.6
@angular/forms: 4.4.6
@angular/http: 4.4.6
@angular/material: 2.0.0-beta.12
@angular/platform-browser: 4.4.6
@angular/platform-browser-dynamic: 4.4.6
@angular/router: 4.4.6
@angular/cli: 1.4.1
@angular/compiler-cli: 4.4.6
@angular/language-service: 4.4.6
typescript: 2.3.4`
但是在编译项目时会抛出错误:
E:/ Prashant / UserManagement / Farmer Angular / kalpavriksha-angular-v4 / node_modules / angularfire2 / firebase.app.module.d.ts(2,42):Module'“E:/ Prashant / UserManagement / Farmer Angular / kalpavriksha-angular-v4 / node_modules / firebase / index“'没有导出的成员'函数'。
将firebase版本更新为^5.0.4
后收到此错误:
模块E的元数据版本不匹配:/ Prashant / UserManagement / Farmer Angular / kalpavriksha-angular-v4 / node_modules / angularfire2 / index.d.ts,找到版本4,预期3,解析E中的符号AppModule:/ Prashant / UserManagement / Farmer Angular / kalpavriksha-angular-v4 / src / app / app.module.ts,在E中解析符号AppModule:/ Prashant / UserManagement / Farmer Angular / kalpavriksha-angular-v4 / src / app / app.module.ts ,在E中解析符号AppModule:/ Prashant / UserManagement / Farmer Angular / kalpavriksha-angular-v4 / src / app / app.module.ts