question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

firebaseauth not defined, something is wrong here

See original GitHub issue

Hi guys,

Just started a new ionic project that i have for school and after ionic scaffold the project I did this

bower install angularfire --save and I see that it save angularfire in the bower.json file and the same goes for bower install firebase --save

I inject the firebase in the main app angular.module('app', ['ionic', 'app.controllers', 'app.routes', 'app.services', 'app.directives','firebase'])

and then in my controller .controller('popularCtrl', ['$scope', '$firebaseObject', '$firebaseArray', '$firebaseAuth', function($scope, firebaseObject, firebaseArray, firebaseAuth) {

Then when I want to use the firebaseAuth function var authObj = $firebaseAuth();

it says $firebaseAuth is not defined

This is my PR THL

I have looked at the doc and they say that I should do it like that.

and in my app.js I also added the sdk

angular.module('app', ['ionic', 'app.controllers', 'app.routes', 'app.services', 'app.directives','firebase']) .config(function(){ var config = { apiKey: "xxxxxxxxxxxxxxx", authDomain: "xxxxxxxxxxxxxxx", databaseURL: "xxxxxxxxxxxxxxx", storageBucket: "xxxxxxxxxxxxxxx", }; firebase.initializeApp(config); })

Can anyone tell my why this is happening, am I reading the doc wrong or ?

Version info

Angular: 1.5.6

Firebase: 3.0.3

AngularFire: 2.0.1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
katowulfcommented, Jun 7, 2016

Thanks @CyrusZei 🚀🚀🚀

@iRoachie nice when they turn out to be easy fixes. Have a great day.

1reaction
iRoachiecommented, Jun 7, 2016

Adding the script tags did the trick. I have it here working. I submitted a pr to your repo

Read more comments on GitHub >

github_iconTop Results From Across the Web

firebaseauth not defined, something is wrong here · Issue #768
Hi guys, Just started a new ionic project that i have for school and after ionic scaffold the project I did this bower...
Read more >
firebase.auth is not a function - Stack Overflow
This did not work for me and seems to be an issue that occurs when you have both firebase and firebase-admin installed in...
Read more >
Auth | JavaScript SDK | Firebase JavaScript API reference
When set to null, the default Firebase Console language setting is applied. ... Error Codes. auth/invalid-email: Thrown if the email address is not...
Read more >
next-firebase-auth - npm
Simple Firebase authentication for all Next.js rendering strategies. Latest version: 0.14.4, last published: 2 months ago.
Read more >
Using Firebase Authentication - FlutterFire
Before using Firebase Auth, you must first have ensured you have initialized FlutterFire. To create a new Firebase Auth instance, call the instance...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found