I have tried to work with firebase-auth.And my code was:
import firebase from "firebase/app"
import "firebase/auth";
const config = firebase.initializeApp({
apiKey: "****************",
authDomain: "*************.firebaseapp.com",
projectId: "*************",
storageBucket: "*************.appspot.com",
messagingSenderId: "*************",
appId: "*************",
measurementId: "G-*************"
});
export const auth = firebase.auth()
const provider = new firebase.auth.GoogleAuthProvider();
provider.setCustomParameters({ prompt: 'select_account' });
export const signInWithGoogle = () => auth.signInWithPopup(provider);
export default config;`
After this I take error which:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/firebase_app.js?v=a999d869' does not provide an export named 'default' (at Config.jsx:1:1)
How can I solve it?