undefined is not an object (evaluating 'Wu.getRandomValues')

Viewed 464

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 Answers

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.

Related