realm-js: Unknown execution context on iOS Simulator with Remote JS Debugging
-
Goals Debug code with Remote JS Debugging.
-
Expected results Debug code with Remote JS Debugging.
-
Actual results Red error screen with title ‘Unknown execution context’

-
Steps to reproduce
- Create new project
react-native init TestRealm - Install Realm
npm install --save realmoryarn add realm - Link Realm
react-native link realm - In index.ios.js insert
import Realm from 'realm - Run code
react-native run-ios - Enable Remote JS Debugging
-
Code sample that highlights the issue https://github.com/aparedes/TestRealm
-
Version of Realm 1.0.2 / Xcode 8.2.1 / OSX 10.11.6
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 22 (3 by maintainers)
Do you have the debugger with device toolbar on?
It seems that is the one causing the problems. Or at least for me.
running
react-native run-iosagain, worked for me.