scorelab / Go-social

Community of today used to use mobile phones to make their life easier and Community based mobile applications are famous among them. There are several kind of community based applications in use and most of them are relating to a specific domain. But core components have similar features. Address this issue and saving development time by Introducing a common app template with customizable components for community based mobile applications , is the main purpose of this project.
Apache License 2.0
61 stars 90 forks source link

Throw an error "Object is not iterable" at the app start #128

Open RDPerera opened 3 years ago

RDPerera commented 3 years ago

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)

Error Image

I have following Specs that exactly matched to the latest version needed specs,

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.

shehand commented 3 years ago

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.

RDPerera commented 3 years ago

Thank you very much! I'll check it.

AbhiKul10 commented 3 years ago

Hey! @RDPerera did you resolved the error?

RDPerera commented 3 years ago

Almost resolved.

AbhiKul10 commented 3 years ago

how to resolve it? Can you please guide me? @RDPerera

RDPerera commented 3 years ago

Did you getting the same error ??

AbhiKul10 commented 3 years ago

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.

shehand commented 3 years ago

@AbhiKul10 as I remember react-native-firebase did not work, that's why directly used firebase.

AbhiKul10 commented 3 years ago

Okay!

jan-code26 commented 2 years ago

@AbhiKul10 could you tell me how you resolved this error

AbhiKul10 commented 2 years ago

@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.