After installing realm using the following commands:
npm i realm -S
react-native link realm
Note: This issue arises only when debugging from a device.
Although everything is still functioning properly, I am encountering an error message
Must first create RPC session with a valid host
when trying to enable Debug Js Remotely
from the development menu. Previously, remote debugging was working fine and the development server is running on port 8081 as usual.
If you require any code examples, please let me know. Realm is not being invoked until later in the process.
From package.json:
{
"name": "ExampleProject",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"babel-jest": "^20.0.1",
"babel-preset-react-native": "1.9.1",
"jest": "^20.0.1",
"react": "16.0.0-alpha.6",
"react-native": "^0.44.0",
"react-native-device-detection": "^0.1.3",
"react-native-elements": "^0.11.2",
"react-native-orientation": "git+https://github.com/yamill/react-native-orientation.git",
"react-native-scrollable-tab-view": "^0.6.5",
"react-native-vector-icons": "^4.1.1",
"react-navigation": "^1.0.0-beta.9",
"react-test-renderer": "16.0.0-alpha.6",
"realm": "^1.3.0"
},
"jest": {
"preset": "react-native"
}
}
Error:https://i.sstatic.net/9i2Bb.png
The Realm Issue tracker briefly mentions this problem, but I have yet to find a solution. If anyone has encountered this issue before or can offer guidance on how to resolve it, I would greatly appreciate it.