-
Notifications
You must be signed in to change notification settings - Fork 934
7.13.2 has unhandled promise rejection Wu.getRandomValues is undefined #2858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pdugan20 Thanks for filing this issue. @dconeybe The following line is likely the culprit:
Since we likely don't want to include an externs file just for this, your best bet may be to use object-literal access: If I interpet this issue correctly. "crypto" is also not available in ReactNative. Otherwise, |
I get this on @firebase/[email protected]. |
@RWOverdijk Yes at the moment the latest working version for react-native seems to be 7.9.0 |
@schmidt-sebastian Yes this does seem to be the case. At the moment this is breaking the react-native support so a fallback to |
I've reverted this "crypto" change for now. Our next release will therefore fix this error. |
Awesome great to hear @dconeybe ! There is currently another issue which breaks the react-native supported due to the absence of |
There are no immediate plans to fix that issue at the moment unfortunately. We are, however, aware of the issue. For now, you will just need to continue to polyfill |
@dconeybe thanks for the quick fix! appreciate it! |
Alright thanks for the info @dconeybe ! |
Describe your environment
Describe the problem
Getting the following error when trying to initialize within react native:
Not sure what Wu is, is that referring to Kai Wu?
Steps to reproduce:
Try and initialize firebase within a react native environment.
Relevant Code:
The text was updated successfully, but these errors were encountered: