Ionic 2 beta 11 firebase don't work

after update my app to beta 11, my app is break because firebase module is not found but before the app was working. sorry for my english

This is due to TypeScript errors, they don’t let Ionic build the bundle.js files.

Check your terminal not the console, for those errors, and then try to fix them.

Make sure you have everything installed to the latest version:

npm install -g ionic@beta cordova typings

Then inside the project do a typings install --save firebase

Let me know if you can’t debug the TS erros :slight_smile:

can’t work, if i import the firebase module the app break!!! sorry for my english

Just to add… You’ll have to add reference to typings file in app.ts if you’re using typings…

/// <reference path="../typings/index.d.ts" />

...

export class MyApp {

...

image I get this error

@arsene123

  • You are using the AngularFire, not plain Firebase
  • The version of AngularFire you downloaded is not compatible with rc4 version of angularJS which is what Ionic is using
  • You need to use the older version of AngularFire and wait until Ionic upgrades to latest version of angularJS which is rc5 I believe

See - https://github.com/angular/angularfire2/issues/438

Which version is right for the beta 11 and how can i install it?

see sample project here - https://github.com/aaronksaunders/ionic2-angularfire-sample

i get this error with your simple app

did you delete the node_modules directory and do npm install ? I am not seeing the error when I pull the latest from the repo

your package.json should look like this

"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/forms": "0.2.0",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"@angular/router": "2.0.0-rc.2",
"es6-shim": "0.35.0",
"ionic-angular": "2.0.0-beta.11",
"ionic-native": "1.3.10",
"ionicons": "3.0.0",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "0.6.12",
"angularfire2": "2.0.0-beta.2",
"firebase": "3.2.1",
"moment": "2.13.0"

notice there are no ^ in front of there module versions

image

**

notice there are no ^ in front of the module versions

**

where? i don’t see it!!! :sweat:

click the link above to see the diff

i find it, just time to try it

Is cloning, replacing the Firebase Auth info, and npm install, all that is needed for your repo to work? Haven’t been able to get it to work. Wana make sure I’m not missing something

all that is done, i replace with my info

@arsene123 you are not following my instructions… if you are not going to follow the instructions, then I simply cannot help you

@chris012543 that is all that is required; yes