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

See original GitHub issue

Goals

I’m trying to include realm into my existing react-native app

Expected Results

Run my project in iOS via Expo app, as before realm installation

Actual Results

I have Missing Realm constructor error.

screen shot 2017-09-24 at 14 23 47

I’ve tried to run ⇒ react-native link realm

output is Scanning 794 folders for symlinks in pathToProject/node_modules (8ms)

After this step problem is still here

Steps to Reproduce

  1. Add realm to project
  2. npm start

Code Sample

Problem reproduces for me if I have import of realm in my code import Realm from 'realm'

Version of Realm and Tooling

  • Realm JS SDK Version: ^1.12.0, react-native-cli: 2.0.1, react-native: 0.47.2
  • Node or React Native: React Native
  • Client OS & Version: macOS Sierra 10.12.6
  • Which debugger for React Native: None

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Hatkocommented, Oct 16, 2017

You made it clear now, thank you! 🙂

1reaction
Hatkocommented, Oct 10, 2017

@kneth, unfortunately we still getting the same error. steps to reproduce are really straightforward:

  1. npm install --save realm
  2. run with expo xde on iPhone simulator
  3. error, saying missing constructor
  4. react-native link realm
  5. error, saying missing constructor

can you reproduce this issue? ver in package.json: “realm”: “^1.13.0”,

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native SDK with Expo - "Missing Realm constructor" error
According to the latest documentation for MongoDB Realm React Native, it states that their SDK is compatible with Expo…
Read more >
Missing Realm constructor. Did you run "react-native link ...
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via...
Read more >
Missing Realm constructor. Did you run "pod install"? (I'm ...
I want to use Realm (mongodb). So after running: npm install realm. realm was correctly added in the "node_modules" and I tried to...
Read more >
Someone else have tried to implement Realm in an Expo ...
I just add the import in my android project and have this issue. Error: Missing Realm constructor. Did you run "pod install"? Please ......
Read more >
MongoDB Realm React Native SDK with Expo - Stack Overflow
MongoDB Realm React Native SDK with Expo - Missing Realm Constructor error · Did you look at the Getting Started Template and follow...
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