-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
SDK FY21-Q2
-
3045
<!---
Questions: If you have questions about HOW TO use Realm, please ask on
StackOverflow: http://stackoverflow.com/questions/ask?tags=realm
We monitor the realm tag.
Feature Request: Just fill in the first two sections below.
Bugs: To help you as fast as possible with an issue please describe your issue
and the steps you have taken to reproduce it in as much detail as possible.
-->
Goals
<!--- What are you trying to achieve? -->
Updated existing React Native app from realm@10.0.0-beta.7 to realm@10.0.0-beta.8 and now the app throws a TypeError on launch.
Expected Results
<!--- What did you expect to happen? -->
TypeError should not be thrown and Realm should function normally in a React Native app.
Actual Results
<!--- What happened instead? -->
<!--- e.g. the stack trace of a crash -->
TypeError: process.versions is not an Object. (evaluating '"node" in process.versions')
Appears to be caused by the following code from realm-network-transport:
const isNodeProcess = typeof process === "object" && "node" in process.versions;
Steps to Reproduce
<!--- What are steps we can follow to reproduce this issue? -->
- Run a React Native app on Realm 10.0.0-beta.8.
Code Sample
<!---
Please provide a code sample or test case that highlights the issue.
If relevant, include your model definitions.
For larger code samples, links to external gists/repositories are preferred.
Full projects that we can compile and run ourselves are ideal!
-->
Version of Realm and Tooling
- Realm JS SDK Version: 10.0.0-beta.8
- Node or React Native: React Native 0.62.2 running on Node 10.15.3 (also tried 12.17.0)
- Client OS & Version: iOS 13.4.1 but probably Android too
- Which debugger for React Native: None