7
votes

I am using firebase firestore for my app. Whenever I try to call firebase.firestore().collection("users"), I get undefined is not an object (evaluating 'Wu.getRandomValues'). I have no idea what this error means as in my previous project, I used firestore and nothing of this sort came up. I have also recently upgraded my expo client, but I am not sure that the new version is the issue. Any help would be appreciated.

2
I had the same issue. Downgraded the firebase version to @7.12.0 and it worked again. - Taher Rahgooy
Let me know if you are able to get your data to show. I can only get my information to show in debug mode. - Darron

2 Answers

0
votes

In my case it happened when I upgraded to Expo SDK 37. And I solved it by updating android studio and Android SDK. https://www.javadrive.jp/android/install/index3.html#section2

0
votes

Okay. From what I have experienced, it seems that I needed to uninstall firebase from my project with npm uninstall firebase. Then, I had to reinstall firebase and @firebase/firestore using expo like so expo install firebase @firebase/firestore. From there, I did import * as firebase from "firebase" and import "@firebase/firestore in my file.