realm-js: Error: Missing Realm constructor. When New Architecture is enabled
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
- Init latest React-native 70 fabric example (NO expo)
- Add latest realm package to project (11.0.0)
- Hermes ON (now by default), New Architecture ON
- 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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 35 (15 by maintainers)
with 11.9.0 i had same issue with v12.0.0-alpha.2 i have issue: TypeError: Cannot read property ‘Helpers_get_table’ of undefined, js engine: hermes
… its really piece of shit
same issue on IOS.
For me this error is not happening when running using
expo run:ios. It is happening when runningexpo startI’m testing libraries in newArch. I created a new project and added realm only.
I have the same issue, see on my GitHUB
"realm": "^11.2.0"