ReferenceError: firebase is not defined
With a new cli based project, getting above error while trying to reference TIMESTAMP variable .
this trick hasn't helped.
I have tried importing firebase in main file: import 'firebase';
Also, tried importing firebase in angular-cli.json, get require not defined in FacebookAuthProvider.
Using Angular 2 final with latest version of angularfire2 (beta 5)
@asadsahi do you have the following entry in src/tsconfig.json
"types": [ "firebase" ]
@mukesh51 Great news, duplicate identifier after adding this entry :)

I think firebase typings is not needed anymore.
firebase global variable isn't available for some reason, even I import it in main file, doesn't seem like a typings issue.
Interesting. I just did a full install following this documentation setup on Ubuntu 14.04 and it working as expected. I have to add the firebase entry in tsconfig.json to resolve the error around firebase namespace.
I had issues on windows machine, but different. not worth mentioning here.
@davideast any thoughts ?
@asadsahi you're correct, @types/firebase is no longer needed.
Can you share the whole file where you're trying to access TIMESTAMP? (Even better if you can provide a Github repo with the full project).
@jeffbcross I only like magic on TV, but for some reason am witnessing magic on my project too, The issue has resolved for some reason, The only change i have done is updated angular-cli from beta 14 to beta 15 and reinstall node_modules.
Not having firebase undefine error, hence closing this.
this.timestamp = firebase.database['ServerValue']['TIMESTAMP'];
try this: declare var firebase: any;