stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.29k stars 914 forks source link

Dependency AngularFire2 #189

Closed pacozevallos closed 3 years ago

pacozevallos commented 6 years ago

Is there a problem with Angularfire2? I do not recognize dependency. import { AngularFireAuthModule } from 'angularfire2/auth';

EricSimons commented 6 years ago

I just tried this myself and it seems to work 🤔 Can you link the project here that this isn't working in?

enesyalcin commented 6 years ago

@EricSimons I know you are probably very busy, would be awesome if you could have a look at the /auth issue :)

I used the Template of angularfire2 and added my part which is not working.

In hello.component.ts line 21 I get

Property 'auth' does not exist on type 'AngularFireAuthModule'.

I faced the same problem when I imported it to my app.module.ts. As i added it to NgModel imports it vanished and I got the right path.

module "node_modules/angularfire2/auth/index"

EricSimons commented 6 years ago

@enesyalcin np! You're importing the wrong module — it should be AngularFireAuth, not AngularFireAuthModule :)

EricSimons commented 6 years ago

Here's a working example from another StackBlitz user: https://stackblitz.com/edit/ionic-angularfire-starter?file=pages%2Fauth%2Fauth.ts

enesyalcin commented 6 years ago

shame on me, thanks a lot.