I installed version 9 of FireBase on React 18, I did all the settings correctly, but I do not know why I can not solve the problem no matter what I do, can you help me?
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
const firebaseConfig = {
apiKey: x,
authDomain: x,
projectId: x,
storageBucket: x,
messagingSenderId: x,
appId: x
};
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
export { db };