Pretty simple really - even though I have initalized my app, I can't get auth (getAuth()). I'm building a Node module for React/Gatsby apps.
I've imported Firebase:
import { initializeApp } from '@firebase/app'
import * as firebaseAuth from '@firebase/auth'
I initialize the app in componentDidMount in the main component, then get auth, like this:
const firebaseConfig = {
// my firebase app config
};
const app = initializeApp(firebaseConfig)
const auth = firebaseAuth.getAuth()
But on getting auth (getAuth()), I get an error:

... which seems weird since I just initialized the app.
Help appreciated.