-
Notifications
You must be signed in to change notification settings - Fork 182
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
Version 3.1.0 is not working in React-Native when is not in debugging mode or when is generating release #87
Comments
I'm not familiar with React Native, but as the error message says, you need |
I tried to find something like this but I've no success. Idk how to fix this. |
I also bumped into this issue. It happens because of the following single line (and the dependency on Line 38 in 05a3224
This comes from this commit: f21a6fb I don't really understand, why random UUIDs are necessary during JS serialization. Lazy to dig in too deep, but my guess is that original implementation just cut some corners, and used in-place UID instead of building a separate index of transformed entities, thus the correct fix of the problem should be not relying on a more randomized UUID, but re-writing the algo to not use UUIDs at all. The working workaround for RN is to shim |
To add to @birdofpreyru 's analysis:
|
I had a second brief look at the code, and it still looks to me like a lame implementation rather than a security feature: Lines 94 to 117 in 45fb0f1
|
Why didn't you close this issue? it's for version 3.x |
@amerllica The code in question, thus the issue, is still present in the current version v6.0.0. |
Hello, I'm using serialize-javascript in React-Native instead of JSON.stringify function. The version 3.1.0 is not working in React-Native when the debugger is off or in the release apk (because there is no debugger).
The issue is:
Error: Secure random number generation is not supported by this browser. Use Chrome, Firefox or Internet Explorer 11.
Reproduce:
My set is:
Running app in simulators:
Chrome version:
The previous version (3.0.0) working well. There are a prevision/way to fix this to work without debugger?
The text was updated successfully, but these errors were encountered: