I'm attempting to implement firebaseui for a login feature in react-redux using typescript. Here is the code snippet:
import firebase from 'firebase';
import firebaseui from 'firebaseui';
import fire from '../FirebaseCreds';
export class FirebaseAuth {
public Login() {
var ui = new firebaseui.auth.AuthUI(firebase.auth());
}
}
However, I encounter a compilation error or possibly an internal server error with no specific output.
The error message reads as follows:
NodeInvocationException: Prerendering failed because of error: ReferenceError: window is not defined