我正在尝试在Angular 4中设置一个新网站。我想使用Firebase作为数据库后端。Angular 4与AngularFire2
我使用的是安装指南这里找到:https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md
然而,当我执行ng serve --open
我收到此错误:
ERROR in Error encountered resolving symbol values statically. Calling function 'OpaqueToken', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol FirebaseUserConfig in C:/Source/node_modules/angularfire2/tokens.d.ts, resolving symbol AngularFireModule.initializeApp in C:/Source/node_modules/angularfire2/angularfire2.d.ts, resolving symbol AppModule in C:/Source/src/app/app.module.ts, resolving symbol AppModule in C:/Source/src/app/app.module.ts
正如我宁愿用角一个新手,我不知道如何解决这个错误。
详见本期https://开头的github .com/angular/angularfire2/issues/843 –
'npm uninstall firebase angularfire2 --save' 'npm install firebase angularfire2 --save' 似乎解决了现在的问题。有没有人有任何ETA的时候AngularFire2会正式支持Angular 4? –