Realm-js: Debug JS Remotely - React Native

Created on 9 Oct 2018  路  20Comments  路  Source: realm/realm-js

Good day,

When I turn on the Debug JS Remotely feature on my Android device, I get this error:

"constructor must be of type 'function', got (undefined)

image

When the Debug JS Remotely is Off, I get no errors

Android: Main SDK 16
React-native: 0.55.4
Realm: 2.18.0

O-Community T-Bug

Most helpful comment

Update: I was able to resolve the issue by downgrading to realm version 2.17.0.

All 20 comments

+1

+1

Same issue here.
Android minSdkVersion: 16
React Native version: 0.57.2
realm: 2.18.0

Same here
React Native 0.57.2
realm: 2.16.0

Same here, react native 0.57.2, realm 2.18

2053

Same here... Please fix!

Help for me:

  • downgrade realm to version 2.14.0
  • downgrade node to version 8.11.3
  • react-native unlink realm
  • react-native link

Same here using iOS simulator. Works fine if remote debugging turned off.
"react-native": "0.56.0",
"realm": "^2.18.0",

Help for me:

  • downgrade realm to version 2.14.0
  • downgrade node to version 8.11.3
  • react-native unlink realm
  • react-native link

Downgrade realm to version 2.14.0 worked for me, thanks.

Update: I was able to resolve the issue by downgrading to realm version 2.17.0.

+1

Even after downgrading to 2.17.0, 2.16.0, 2.14.0, doesn't fix this error. I'm using react native 0.57.4

But works fine with below versions:
"react": "16.4.1",
"react-native": "0.56.1",
"realm": "^2.14.0",

I got it fixed by upgrading manually to 2.19.0-rc.4, then again using react-native link realm and then rebuilding the app. Everything seems to work as expected now.

@epshtielsl thanks ;)

I can confirm that downgrading to [email protected] fixes this remote debugging bug. I just tried [email protected] on [email protected] and I receive the same error worded slightly different.

Anyhow, I hope the lib maintainers can help us help them get this issue resolved, please solicit for anything that will help resolve this! Thanks :-)

We assume this is fixed in 2.20.0.

"realm": "^2.20.0",
"react-native": "0.57.1",
Same issue.

Having the same issue in

"realm": "2.29.0"
"react": "16.8.6",
"react-native": "0.59.9"

Having the same issue in

"realm": "3.2.0"
"react": "16.9.0",
"react-native": "0.61.5"

Was this page helpful?
0 / 5 - 0 ratings