question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Realm constructor. Did you run "react-native link realm"?

See original GitHub issue

2019-10-12 18:12:48.003275+0800 mlmlApp[28520:193898] [] nw_socket_handle_socket_event [C5.1:1] Socket SO_ERROR [61: Connection refused] 2019-10-12 18:12:48.008963+0800 mlmlApp[28520:193898] [] nw_socket_handle_socket_event [C5.2:1] Socket SO_ERROR [61: Connection refused] 2019-10-12 18:12:48.017092+0800 mlmlApp[28520:193888] [] nw_connection_get_connected_socket [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection 2019-10-12 18:12:48.017465+0800 mlmlApp[28520:193888] TCP Conn 0x6000020f1680 Failed : error 0:61 [61] 2019-10-12 18:12:48.222 [error][tid:com.facebook.react.JavaScript] Error: Missing Realm constructor. Did you run “react-native link realm”? Please see https://realm.io/docs/react-native/latest/#missing-realm-constructor for troubleshooting 2019-10-12 18:12:48.226 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Error: Missing Realm constructor. Did you run “react-native link realm”? Please see https://realm.io/docs/react-native/latest/#missing-realm-constructor for troubleshooting 2019-10-12 18:12:48.253 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication) 2019-10-12 18:12:48.256 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

Version of Realm and Tooling

  • Realm JS SDK Version: 3.2.0
  • Node or React Native: 0.61.2
  • Client OS & Version: Mac10.14.6
  • Which debugger for React Native: xCode

I have followed the documentation ‘https://realm.io/docs/javascript/latest/#missing-realm-constructor’ but it not work

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:55 (12 by maintainers)

github_iconTop GitHub Comments

15reactions
Yieroncommented, Oct 12, 2019

Android is ok

8reactions
rizwanattacommented, Oct 31, 2019

I got it working by: for both iOS AND android

having the auto-linking disabled in the config file

OSX 10.15 RN 0.61.2 REALM 3.2.0

dragged this two XCODE and deleted the test target in RealmJS.xcodeproj

Screenshot 2019-11-01 at 3 09 01 AM

added the libRealmReact.a file in link binaries with libraries

Screenshot 2019-11-01 at 3 15 32 AM
Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Realm constructor. Did you run "pod install"? (I'm ...
In your project folder run npm install realm . It adds the npm package to your react native project; In your iOS folder...
Read more >
React Native SDK with Expo - "Missing Realm constructor ...
According to the latest documentation for MongoDB Realm React Native, it states that their SDK is compatible with Expo…
Read more >
Someone else have tried to implement Realm in an Expo ...
Error: Missing Realm constructor. Did you run "pod install"? Please see https://realm.io/docs/react-native/latest/#missing-realm-constructor ...
Read more >
Build an Offline-First React Native Mobile App with Expo ...
Error: Missing Realm constructor. Did you run "pod install"? Please see https://realm.io/docs/react-native/latest/#missing-realm-constructor ...
Read more >
[Solved]-Missing realm constructor react native ios but ...
Related Query · Missing realm constructor react native ios but realm is linked · Ios version of app works, but Android fails due...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found