Angularfire: firebase.Promise

Created on 13 Oct 2017  Â·  8Comments  Â·  Source: angular/angularfire

if I run my project ionic serve -l

see this error :

Typescript Error
Namespace 'firebase' has no exported member 'Promise'.

...oject/apps/ionic-splasher/node_modules/angularfire2/app/firebase.app.module.d.ts

12 delete: () => firebase.Promise

the line 12 is error
plsss help how can fix this problem ? anyone can help me tnx :)

Most helpful comment

where place to export your codes ? I'm sorry because I'm a beginner :)

On Fri, Oct 13, 2017 at 11:31 PM, dauledk notifications@github.com wrote:

signIn(email: string, password: string): Promise { return
this.auAuth.auth.signInWithEmailAndPassword(email, password); }

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angularfire2/issues/1261#issuecomment-336486729,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ae1cfWz13yjEgkGiJB39STpDnArdKYuFks5sr4JggaJpZM4P4Kdo
.

All 8 comments

How ?

like this ?

signIn(email: string, password: string): Promise {
return this.auAuth.auth.signInWithEmailAndPassword(email, password);
}

signIn(email: string, password: string): Promise<void> { return this.auAuth.auth.signInWithEmailAndPassword(email, password); }

where place to export your codes ? I'm sorry because I'm a beginner :)

On Fri, Oct 13, 2017 at 11:31 PM, dauledk notifications@github.com wrote:

signIn(email: string, password: string): Promise { return
this.auAuth.auth.signInWithEmailAndPassword(email, password); }

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angularfire2/issues/1261#issuecomment-336486729,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ae1cfWz13yjEgkGiJB39STpDnArdKYuFks5sr4JggaJpZM4P4Kdo
.

where place to export your codes ? I'm sorry because I'm a beginner :)

I don't know where to export the codes too =/

do you find where export this codes ?

Yea same where do u even export this codes.
I'm a beginner too!

This repo demonstrates a how to use firebase and authentication. It is very good for beginners. There is a demo here. Currently the library uses angular 4 - but the structure of the project should give you a very good idea of _where to export your codes_. The actual location is here. Hope this can help you get started :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

avanderbergh picture avanderbergh  Â·  3Comments

sharomet picture sharomet  Â·  3Comments

adriandurran picture adriandurran  Â·  3Comments

harrylincoln picture harrylincoln  Â·  3Comments

Leanvitale picture Leanvitale  Â·  3Comments