Error when trying to using firebase


var ref = new Firebase(“”);
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


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