Ionic 2 beta 11 firebase don't work


#1

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


#2

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:


#3

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


#4

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 {

...

#5

I get this error


#6

@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


#7

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


#8

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


#9

i get this error with your simple app


#10

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


#11


#12

**

notice there are no ^ in front of the module versions

**


#13

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


#14

click the link above to see the diff


#15

i find it, just time to try it


#16


#17

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


#18

all that is done, i replace with my info


#19

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


#20

@chris012543 that is all that is required; yes