Go-social icon indicating copy to clipboard operation
Go-social copied to clipboard

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

Open RDPerera opened this issue 3 years ago • 11 comments

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,

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

RDPerera avatar Apr 23 '21 21:04 RDPerera

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.

shehand avatar Apr 25 '21 05:04 shehand

Thank you very much! I'll check it.

RDPerera avatar Apr 25 '21 06:04 RDPerera

Hey! @RDPerera did you resolved the error?

AbhiKul10 avatar Apr 26 '21 18:04 AbhiKul10

Almost resolved.

RDPerera avatar Apr 27 '21 08:04 RDPerera

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

AbhiKul10 avatar Apr 27 '21 10:04 AbhiKul10

Did you getting the same error ??

RDPerera avatar Apr 27 '21 14:04 RDPerera

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 avatar Apr 27 '21 14:04 AbhiKul10

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

shehand avatar May 02 '21 04:05 shehand

Okay!

AbhiKul10 avatar May 02 '21 17:05 AbhiKul10

@AbhiKul10 could you tell me how you resolved this error

jan-code26 avatar Mar 21 '22 04:03 jan-code26

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

AbhiKul10 avatar Mar 22 '22 10:03 AbhiKul10