I'm using firebase realtime database and trying to use the Auth method firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__.default.auth is not a function
I tried some resolutions and suggestions that I saw in Stackoverflow, however still getting the message
import firebase from 'firebase/compat/app';import 'firebase/auth';import 'firebase/database';// Your web app's Firebase configurationconst firebaseConfig = { apiKey: process.env.REACT_APP_API_KEY, authDomain: process.env.REACT_APP_AUTH_DOMAIN, databaseURL: process.env.REACT_APP_DATABASE_URL, projectId: process.env.REACT_APP_PROJECT_ID, storageBucket: process.env.REACT_APP_STORAGE_BUCKET, messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID, appId: process.env.REACT_APP_APP_ID};// Initialize Firebase//const app = initializeApp(firebaseConfig);firebase.initializeApp(firebaseConfig);export const auth = firebase.auth();export const database = firebase.database();