firebase auth npm not working

I am trying to auth using the firebase npm package, but not having any luck getting it to work.
error " undefined is not an object (evaluating ‘firebase.auth.createUserWithEmailAndPassword’)"

import * as firebase from ‘firebase/app’ ;
import ‘firebase/auth’ ;

firebase.auth().createUserWithEmailAndPassword(email, password). catch(function (error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// …
});