From 80d1d2dd66b8d7c07adcceb8109eacd67b0b8fcd Mon Sep 17 00:00:00 2001 From: kanha Date: Thu, 24 Mar 2022 21:57:07 +0530 Subject: [PATCH] fix for Throw an error "Object is not iterable" at the app start #128 --- config/config.example.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/config/config.example.js b/config/config.example.js index 32dda3f..58078f3 100644 --- a/config/config.example.js +++ b/config/config.example.js @@ -7,13 +7,17 @@ var config = { projectId: "", storageBucket: "", messagingSenderId: "" - }; +}; +try { firebase.initializeApp(config); +} catch (error) { + console.log(error) +} - var MAP_API_KEY = ""; +var MAP_API_KEY = ""; - export const f = firebase; - export const database = firebase.database(); - export const auth = firebase.auth(); - export const storage = firebase.storage(); - export const MAP_API = MAP_API_KEY; \ No newline at end of file +export const f = firebase; +export const database = firebase.database(); +export const auth = firebase.auth(); +export const storage = firebase.storage(); +export const MAP_API = MAP_API_KEY; \ No newline at end of file