Error when require Realm in react native app
See original GitHub issueAfter installing realm in a react native project and require it just like the documentation example
const Realm = require('realm');
the app just doesn’t launch anymore. As soon as i remove the require, app launch normaly.
My dependencies :
"react": "16.0.0-beta.5",
"react-native": "^0.49.5",
"react-native-maps": "^0.17.1",
"react-redux": "^5.0.6",
"realm": "^2.0.8",
"redux": "^3.7.2"
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top Results From Across the Web
React-Native app "keeps stopping" after installing realm and ...
when I run npm uninstall realm @realm/react the app build and lunch ... ERROR Error: Requiring module "src\navigation\stack\index.js", ...
Read more >Error when require Realm in react native app - Stack Overflow
I'm integrating Realm in my react native project and I get an error when I use the import statement defined on the realm...
Read more >React-Native errors when using realm - MongoDB
I am trying to set up an electron app with angular 14. Module not found: Error: Can't resolve 'react-native' in {Path_To_App}\node_modules\ ...
Read more >@realm/react - npm
Realm React. Build better apps, faster. Introduction. Setting up Realm in a React Native application has historically been complex.
Read more >Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@jaumevn Thanks for the update.
global.self = globalfeels like a hack 😄. And from the linked issue, it does sound that it doesn’t work in all cases. Adding the hack to our documentation sounds like a good idea.I met the same question half a month ago and found an answer this night. But it’s too late tonight, I will share tomorrow.