如何将firebase3与angular2一起使用而不使用angularfire2

如何将firebase3与angular2一起使用而不使用angularfire2,angular,typescript,firebase,firebase-authentication,angularfire2,Angular,Typescript,Firebase,Firebase Authentication,Angularfire2,我一直在使用angular2快速启动代码构建一个基本的todo应用程序 我想添加一个登录页面和到firebase的连接来存储和检索todo,但firebase3实现有问题 我可以通过在开始脚本(如下所示)中删除对tsc的调用来让它工作,但这似乎是一个短期修复 "start": "concurrently \"npm run tsc:w\" \"npm run lite\" " 运行npm start时出现的错误表明,在我的component.tsc文件中使用firebase的任何时候,它都找不

我一直在使用angular2快速启动代码构建一个基本的todo应用程序

我想添加一个登录页面和到firebase的连接来存储和检索todo,但firebase3实现有问题

我可以通过在开始脚本(如下所示)中删除对tsc的调用来让它工作,但这似乎是一个短期修复

"start": "concurrently \"npm run tsc:w\" \"npm run lite\" "
运行npm start时出现的错误表明,在我的component.tsc文件中使用firebase的任何时候,它都找不到名称firebase。我还注意到我还没有找到firebase 3全局键入下载,所以只有firebase 2键入

firebase 2和firebase 3在布局上的差异(firebase 3仅在index.html中,firebase 2似乎一直在声明)会导致问题吗

请注意,我的firebase经验非常有限,因此我可能误读了fb2和fb3之间的差异

下面是我当前在npm开始时遇到的错误

> angular2-quickstart@1.0.0 start /Users/ahiggins/Documents/angular_2/tutorials/todo
> tsc && concurrently "npm run tsc:w" "npm run lite" 

app/login/login.component.ts(25,9): error TS2304: Cannot find name 'firebase'.
app/login/login.component.ts(47,9): error TS2304: Cannot find name 'firebase'.
app/login/login.component.ts(56,13): error TS2304: Cannot find name 'firebase'.
app/login/login.component.ts(59,56): error TS2304: Cannot find name 'firebase'.
app/app.component.ts(16,9): error TS2304: Cannot find name 'firebase'.

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/6.4.0/bin/node" "/Users/ahiggins/.npm-packages/bin/npm" "start"
npm ERR! node v6.4.0
npm ERR! npm  v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart@1.0.0 start: `tsc && concurrently "npm run tsc:w" "npm run lite" `
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the angular2-quickstart@1.0.0 start script 'tsc && concurrently "npm run tsc:w" "npm run lite" '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc && concurrently "npm run tsc:w" "npm run lite" 
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular2-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular2-quickstart
npm ERR! There is likely additional logging output above.

这个问题可能有助于研究这种方法,它并不完全排除方程中的AngularFire2: