Firebase with ionic2

What is the appropriate version of ionic2, angularfire2 and firebase that works well?

I tried all the ways suggested in ionic forums and also in angularfire2. went through all the steps in issues part of angularfire2 as well.

but not successfull so far.

all these never worked.

I keep getting
firebase namespace not found
class member cannot be declared optional auth.d.ts & firebase_object_observable.d.ts

issues. But all of them seems like a deadlock situation.

And I am not sure how to upgrade to recent version of ionic. which i posted in another question as well.

my current configs;
“dependencies”: {
@angular/common”: “2.0.0-rc.1”,
@angular/compiler”: “2.0.0-rc.1”,
@angular/core”: “2.0.0-rc.1”,
@angular/http”: “2.0.0-rc.1”,
@angular/platform-browser”: “2.0.0-rc.1”,
@angular/platform-browser-dynamic”: “2.0.0-rc.1”,
@angular/router”: “2.0.0-rc.1”,
“angular2-moment”: “^0.8.0”,
“angularfire2”: “2.0.0-beta.2”,
“firebase”: “3.2.0”,
“es6-shim”: “^0.35.0”,
“ionic-angular”: “2.0.0-beta.9”,
“ionic-native”: “1.2.4”,
“ionicons”: “3.0.0”,
“query-string”: “^4.2.3”,
“reflect-metadata”: “^0.1.3”,
“rxjs”: “5.0.0-beta.6”,
“zone.js”: “^0.6.12”
“devDependencies”: {
“del”: “2.2.0”,
“gulp”: “3.9.1”,
“gulp-watch”: “4.3.5”,
“ionic-gulp-browserify-typescript”: “^1.1.0”,
“ionic-gulp-fonts-copy”: “^1.0.0”,
“ionic-gulp-html-copy”: “^1.0.0”,
“ionic-gulp-sass-build”: “^1.0.0”,
“ionic-gulp-scripts-copy”: “^2.0.0”,
“run-sequence”: “1.1.5”
“name”: “mmsapp”,
“description”: “mmsapp: An Ionic project”,
“cordovaPlugins”: [
“cordovaPlatforms”: [

You need to declare the firebase variable:

Add the below line directly under your last import statement at the top of your file.

declare var firebase;

These ionic2 + Google firebase 3 video tutorial series will get you up and running: