Go-social
Go-social copied to clipboard
Throw an error "Object is not iterable" at the app start
Expected Behavior
The app should be work normally.
Current Behavior
Shows an error "Object is not iterable".
Object is not iterable.
__values
tslib.js:165:28
FirebaseAppImpl
index.rn.cjs.js:151:41
initializeApp
index.rn.cjs.js:379:38
<unknown>
config.js:11:25
loadModuleImplementation
require.js:321:6
guardedLoadModule
require.js:207:36
metroRequire
require.js:127:24
<unknown>
searchView.js:3
loadModuleImplementation
require.js:321:6
guardedLoadModule
require.js:207:36
Failure Information (for bugs)
I have following Specs that exactly matched to the latest version needed specs,
- React-Netive Version = 0.58.6
- Node Version = 10.15.3
- npm Version = 6.4.1
- Java = 11
In config.js file I've replaced all those fields with relevant details according to the documentation of Go-Social var config = { apiKey: "", authDomain: "", databaseURL: "", projectId: "", storageBucket: "", messagingSenderId: "", appId: "", measurementId: "" };
Currenty I'm using Ubuntu 20.04.but I've tried on windows,the result was same. Also I tried different versions of android and different devices but that didn't work too.
I really appreciate if you can guide me to resolve this error.
Enable the remote debugging and check what logs are indicating. Normally in there the file and line number that cause this error can be identified.
Thank you very much! I'll check it.
Hey! @RDPerera did you resolved the error?
Almost resolved.
how to resolve it? Can you please guide me? @RDPerera
Did you getting the same error ??
Yes, I guess this error occurs due to firebase( "firebase.initializeApp(config);") and so i tried using react-native-firebase, but it doesn't work.
@AbhiKul10 as I remember react-native-firebase did not work, that's why directly used firebase.
Okay!
@AbhiKul10 could you tell me how you resolved this error
@jan-code26 This error is occurring due to the line firebase.initializeApp(config);
Try updating config.js according to this -> Link (update import statement too) and also use try and catch block around firebase.initializeApp()
so that we can know what exact error is.