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.

Error: Missing Realm constructor. Did you run "pod install" on Android

See original GitHub issue

How frequently does the bug occur?

All the time

Description

Error: Missing Realm constructor. Did you run “pod install” on react-native run-android. I try to build app on MacMini. Everything works fine if Hermes is enabled and New Architecture is disabled. But, as soon as I turn on the new architecture, the application crashes after launch with such an error. The app is built from the newest Reactnative example.

my package: “react”: “18.1.0”, “react-native”: “0.70.3”, “realm”: “11.0.0”,

I also tried to clear the build folder, put different versions of ream-11-rc-2 and so on

Stacktrace & log output

ERROR  Error: Missing Realm constructor. Did you run "pod install"? Please see https://docs.mongodb.com/realm/sdk/react-native/install/ for troubleshooting, js engine: hermes
 LOG  Running "test-project" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":41}

Can you reproduce the bug?

Yes, always

Reproduction Steps

  1. Init latest React-native 70 fabric example (NO expo)
  2. Add latest realm package to project (11.0.0)
  3. Hermes ON (now by default), New Architecture ON
  4. react-native run-android

Successfully build x Crush on startup app

Version

v11.0.0

What SDK flavour are you using?

Local Database only

Are you using encryption?

No, not using encryption

Platform OS and version(s)

Android 10

Build environment

All from React-native 0.70.3 newest template. Ruby 2.7.6

Cocoapods version

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Zoelanphamcommented, Dec 5, 2022

same issue on IOS.

dependencies: {
   "react-native": "0.67.2",
   "realm": "11.3.0",
}
0reactions
Zoelanphamcommented, Dec 5, 2022

@kneth I don’t think that’s a good idea, because upgrading the version to 0.70 is a new architecture that will occur many other problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Realm constructor. Did you run "pod install"? (I'm ...
As the error message suggests, you need to install the pod files for realm to work with iOS. Those are the steps: In...
Read more >
Missin Realm Constructor error - MongoDB
@Samuele_Cervietti This typically happens when the Realm .so is not linked into the compiled React Native project. Verify that pod install has ...
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 >
Missing realm constructor react native ios but realm is linked ...
Coding example for the question Missing realm constructor react native ios ... How to fix pod install error glog is too old or...
Read more >
Missing realm constructor did you run pod install trabalhos
Busque trabalhos relacionados a Missing realm constructor did you run pod install ou contrate no maior mercado de freelancers do mundo com mais...
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