New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10.20.0-beta.5 Missing Constructor Error #4621
Comments
@djgoulart Thanks for reporting! Can you confirm that |
@takameyer Yes there are 4 folders with 1 file each. |
@djgoulart Ok thanks, I am also able to reproduce this, with and without expo. Will continue to investigate why. |
@djgoulart It seems the the |
Just an update. We have a PR for |
@takameyer I would like to help more. Askme if you need anything. |
@djgoulart we are working hard on a new release, which will solve this issue. Please be patient 🙂 |
Just to register. Similar issue that i`ve commented on React Native 0.69 new release thread. reactwg/react-native-releases#21 (comment) |
Just waiting for you 10.20.0-beta.6, my darling !!!!!!!!! |
Hello, really looking forward to the new version :) I've upgraded a stable React Native project (from: Currently the app is crashing on reproducible occasions, because of the "Missing Constructor" issue. This happens even when I go back to the old realm version Any help appreciated! |
@ChrisConway The only current workaround I have is to use Expo 44. There seems to be something in Expo 45 that comes into conflict with |
@takameyer thanks for the quick reply - unfortunately we're not using Expo. But it's good to know, maybe we'll convert. In case I'll find another way, I'll post it here. Thanks again and let me know in case I can help by providing further information. |
@ChrisConway Well it should work without expo then. However we do have known issues with |
@takameyer I'm using My current configuration: Hint for anyone else coming across this issue: in order to avoid dependency problems when downgrading reanimated, I needed to disable the react-native-reanimated/plugin:
-> Inside
|
@ChrisConway @takameyer I'm using the versions below, and currently I'm not facing this issue. {
"react": "17.0.1",
"realm": "^10.19.0",
"@realm/react": "^0.3.0",
"expo": "^44.0.6",
} |
Using RN 0.69 the problem insists even with the "react-native-reanimated" workaround suggested. |
@joaotmachado We are currently looking into compatibility issues with |
@takameyer could you provide any info related to the release of 10.20.0-beta.6? Our company has great expectation on it. It would able us to active the new architecture on RN 0.69 and bring the Android performance to the next level. Thank you in advance. And let me know if you need any test support. |
@takameyer Still showing the same error for android with the new RC release (11.0.0-rc.0) + React Native 0.69.1 - New Architecture = True. Missing Constructor Error |
@joaotmachado It's not currently compatible with React Native 0.69 and greater. We will update the release notes and are currently working on compatibility with the latest React Native. |
@ChrisConway I tried to downgrade react-native-reanimated like you did but it gave me a new error
I'm not using expo and here is my configuration: Do you know how to solve this issue? Thanks in advance ! |
We have released |
@takameyer I have upgraded realm to 11.0.0-rc.1 but there is always the error "Error: Missing Realm constructor. Did you run "pod install"?. I am not using Mac so I am not able to run this command |
@tdangexo that's strange. Can you try:
Also, does this directory exist? |
@takameyer I tried all given instructions but nothing works. The directory realm exists. Here is my package.json |
@tdangexo what version of |
@takameyer node 16.15.1 and npm 8.11.0. In fact when running npm install, it gave me "Could not resolve dependency peer react-native-safe-area-context@"^3.1.9" from react-native-elements@3.4.2 node_modules/react-native-elementsreact-native-elements@"^3.4.2" from the root project |
@tdangexo That's possible. I'll see if I can reproduce this. You building for Android, correct? |
@takameyer yeahh I'm building for Android. Thanks a lot for your help ! |
@tdangexo I am able to reproduce this using our template app and simply installing |
Verified. Try upgrading to the latest React Native version if you want to use |
@takameyer Is the |
@takameyer Thank you very much, the missing constructor error disappeared. However I can not open the app properly, each time I click on the app, it crashes and returns to the main screen. Is it due to the upgrade of React Native from 0.68 to 0.69? |
@djgoulart unfortunately no. @tdangexo did you follow all the steps to upgrade? See (https://react-native-community.github.io/upgrade-helper/?from=0.68.2&to=0.69.1) |
I still got the error: Missing Realm constructor. Did you run "pod install"?
|
We just pinpointed an issue in |
@djgoulart I have just tested with Expo SDK 45. If you install |
@takameyer Great news! I will make a test with this versions. Currently im using the sack below and im having an issue with the {
"@realm/react": "^0.3.0",
"expo": "^44.0.6",
"react": "17.0.1",
"realm": "^10.19.0",
"react-native": "0.64.3",
} |
@takameyer I was facing this issue, but yesterday it starts to building normaly. Still having some error logs about some @realm/react internal libs (maybe) being deprecated, but until now it's working. |
I tried to follow the steps from https://www.mongodb.com/docs/realm/sdk/react-native/use-realm-react/#setup-realm-react, to install @realm/react in my app, but without success. The error continues. Version: |
@joaotmachado What version of |
Here is my package.json:
|
I tried everything this realm with the new arch doesn't work here. =( |
Hey, @takameyer, I'm facing such issue. When I tried to use |
@edgarriii Please consult our compatability matrix. You will either need to downgrade realm to |
Closing this issue, as this has strayed away from the original problem, which has been solved. If you are still seeing a similar issue, please open a new issue and provide as many details as you can. |
How frequently does the bug occur?
All the time
Description
I did a clean install of version realm@10.20.0-beta.5 to test if it would work with reanimated2.
But from the beginning I got the "Missing Realm constructor" error message.
Im using:
Yes, always
Reproduction Steps
You can use the repo below as example and just configure a Sync App.
https://github.com/djgoulart/realm-sync-error|url
Version
10.20.0-beta.5
What SDK flavour are you using?
Atlas App Services (auth, functions, etc.)
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Android SDK 32
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: