karlhadwen / todoist

Subscribe to my YouTube channel: https://bit.ly/CognitiveSurge - Building Todoist Using React
MIT License
1.34k stars 430 forks source link

firebase error #66

Open themaomao opened 1 year ago

themaomao commented 1 year ago

firebase error

ERROR in ./src/firebase.js 5:23-45 export 'default' (imported as 'firebase') was not found in 'firebase/app' (possible exports: FirebaseError, SDK_VERSION, _DEFAULT_ENTRY_NAME, _addComponent, _addOrOverwriteComponent, _apps, _clearComponents, _components, _getProvider, _registerComponent, _removeServiceInstance, deleteApp, getApp, getApps, initializeApp, onLog, registerVersion, setLogLevel)

swaminathan33 commented 3 months ago

Issue: firebase error

Solution:

  1. Change ./src/firebase.js.example file into firebase.js
  2. Create a account and create a project in firebase
  3. copy and paste the firebaseconfig details provided in firebase site into ./src/firebase.js file
  4. create a db in firestore database