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

前端 未结 4 1884
傲寒
傲寒 2020-12-21 09:27

This is the code I implemented for adding data to collection:

import FirebaseKeys from \"./config\";
import firebase f         


        
相关标签:
4条回答
  • 2020-12-21 10:08

    Update: the problem is being addressed here and should be fixed in v7.13.3. I previously stated that downgrading to firebase v7.9.0 fixed the issue. I discovered that the issue does not exist until v7.13.2. So we can downgrade to v7.13.1. However, we must completely uninstall firebase for this to work.

    I experienced the same error with expo and firebase. I am using Expo version 37. To fix the problem I had to downgrade firebase using the following commands in my app's directory:

    npm remove --save firebase 
    npm install --save firebase@7.13.1
    

    If I use firebase version 7.13.2 I get this error:

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

    0 讨论(0)
  • 2020-12-21 10:15

    Same issue here. I found out that my expo client on android was updated by google play. Latest version use expo sdk 37. I just ran expo update in my project and everything is working again

    0 讨论(0)
  • 2020-12-21 10:17

    A comment from another question has a solution: I had the same issue. Downgraded the firebase version to @7.12.0 and it worked again.

    0 讨论(0)
  • 2020-12-21 10:25

    The answer given here (downgrading) worked. In my case though, upon downgrading, I saw that the real error was a permission error (production mode).

    So the real issue is that this error is masking whatever the real error is. Hopefully it gets fixed soon.

    0 讨论(0)
提交回复
热议问题