Iam integrating firebase to my react app and trying to import the firebase component to other component but its showing me error.
help if any body knows the solutionn!!!!!
this is my firebase config code
import firebase from "firebase";
// Your web app's Firebase configuration
config code here
// Initialize Firebase (error showing in this part)
const app = firebase.initializeApp(firebaseConfig);
const db = app.firestore();
export {db}
iam getting this error when exporting the module
Attempted import error: './firebaseConfig' does not contain a default export (imported as 'db').
ERROR in ./src/Feed.js 22:4-17
New contributor
Unza Shaikh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.