Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upVersion 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 |
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?