Error when trying to using firebase


#1

var ref = new Firebase(“https://MY-APP.firebaseio.com/”);
ref.auth().createUserWithEmailAndPassword(email, password).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// …
});

ionic.bundle.js:26794 Error: Firebase.auth failed: Was called with 0 arguments. Expects at least 1.

Is this piece of code correct?? Sorry for my bad english. Thanks in advance


#2

I am facing the same problem as yours. The same error message appears for me. Someone suggest a way to overcome this error.