Realm-js: v10.0.0-beta.8: TypeError: process.versions is not an Object. (evaluating '"node" in process.versions')

Created on 8 Jul 2020  路  2Comments  路  Source: realm/realm-js

Goals

Updated existing React Native app from [email protected] to [email protected] and now the app throws a TypeError on launch.

Expected Results

TypeError should not be thrown and Realm should function normally in a React Native app.

Actual Results


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

  1. Run a React Native app on Realm 10.0.0-beta.8.

Code Sample

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
O-Community T-Bug-Crash

Most helpful comment

Thanks for reporting this.

A fix for this is contained in https://github.com/realm/realm-js/pull/3001.

All 2 comments

same here, app dont launch
Tested on Android only
Realm JS SDK Version: 10.0.0-beta.8
Node or React Native: React Native 0.62.2 and 0.63 running on Node 10.21.0

Thanks for reporting this.

A fix for this is contained in https://github.com/realm/realm-js/pull/3001.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

max-zu picture max-zu  路  3Comments

Chris-Petty picture Chris-Petty  路  3Comments

fever324 picture fever324  路  4Comments

jmartindivmedianet picture jmartindivmedianet  路  3Comments

ashah888 picture ashah888  路  3Comments