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
Missing Realm Constructor Ignite-cli RN app #4346
Comments
@Lektrion
...
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
...
}
Let us know if this works. I would verify it myself, but I'm having an issue even using |
I would also recommend updating |
Actually ignite-cli v7.10.3 encounter a post-install error with solidarity but i will try your previous solution within the afternoon and let you know. Thank you for the quick reply :) |
Your solution resolved my problem @takameyer ! Basically you can make ignite-cli and Realm work together this way :
Then follow @takameyer solution:
for me ignite project was throwing an error because of rick.jpg image found in components>auto-image (the require doesnt work because the .jpg file seems broken) After following the protocol above and removing the error from auto-image Realm works fine with Ignite-cli boilerplate! I look forward for the new release of Ignite-CLI to be fixed. Thank you |
That's great! It's cool to hear we also work with |
Goals
Build a Ignite-Expo-Realm app
Expected results
Being able to use Realm with a ignite boilerplates with updated expo SDK
Actual results
Error is thrown : Missing Realm Constructor
Steps to reproduce
creating boilerplate via ignite-cli
npx ignite-cli new realmIgnite --expo
npm install realm
expo upgrade
(ignite use expo sdk 43) realm is supported (or is supposed to) with the Sdk 44{{ yarn android}}
As soon as i tried to use Realm via "import Realm from 'realm'" an error is thrown :Missing realm constructor
Realm Works fine using
npx create-react-native-app MyAwesomeRealmApp -t with-realm
Version of Realm / Xcode/ Android Studio/ OSX/ WIN:
Here is the dependencies from package.json
"@expo/webpack-config": "~0.16.2", "@react-native-async-storage/async-storage": "~1.15.0", "@react-navigation/native": "~6.0.1", "@react-navigation/native-stack": "^6.0.2", "@react-navigation/stack": "~6.0.1", "apisauce": "2.0.0", "expo": "^44.0.0", "expo-linear-gradient": "~11.0.3", "expo-localization": "~12.0.0", "expo-modules-core": "~0.6.4", "expo-status-bar": "~1.2.0", "i18n-js": "3.8.0", "mobx": "6.1.8", "mobx-react-lite": "3.2.0", "mobx-state-tree": "5.0.1", "react": "17.0.1", "react-native": "0.64.3", "react-native-gesture-handler": "~2.1.0", "react-native-keychain": "6.2.0", "react-native-safe-area-context": "3.3.2", "react-native-screens": "~3.10.1", "reactotron-mst": "3.1.4", "reactotron-react-js": "^3.3.7", "reactotron-react-native": "5.0.1", "realm": "^10.13.0", "validate.js": "0.13.1"
Issue 4332 encounter the same problem, but i dont understand how to use the solution provided there in my case
Thanks you in advance for any help you could give me
The text was updated successfully, but these errors were encountered: