Getting `Unknown execution context` on Android.
See original GitHub issueI discovered that navigator.product
equals ReactNative
, but typeof Realm
is undefined
, thus following error.
Tried different emulators and different API’s (23 and 25).
At the same time it works in the same app on iOS.
Unknown execution context
getContext
index.js:62
<unknown>
index.js:67
loadModuleImplementation
require.js:171
guardedLoadModule
require.js:123
_require
require.js:107
<unknown>
db.js:1
loadModuleImplementation
require.js:171
guardedLoadModule
require.js:123
_require
require.js:107
<unknown>
syncDbActions.js:32
loadModuleImplementation
require.js:171
guardedLoadModule
require.js:123
_require
require.js:107
<unknown>
sync.js:120
loadModuleImplementation
require.js:171
guardedLoadModule
require.js:123
_require
require.js:107
<unknown>
sync.js:7
loadModuleImplementation
require.js:171
guardedLoadModule
require.js:123
_require
require.js:107
<unknown>
configureStore.js:44
loadModuleImplementation
require.js:171
guardedLoadModule
require.js:123
_require
require.js:107
<unknown>
Buddle.js:142
loadModuleImplementation
require.js:171
guardedLoadModule
require.js:123
_require
require.js:107
<unknown>
index.android.js:3
loadModuleImplementation
require.js:171
guardedLoadModule
require.js:116
_require
require.js:107
global code
require-0.js:1
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
unknown execution context when import realm in react-native
According to documentation: Add the following lines to android/settings.gradle: gradle include ':realm' project(':realm').
Read more >Unknown execution context on iOS Simulator with Remote JS ...
I only get this error with the Remote JS Debugging activated, otherwise it works and I can write and read to/from the Realm...
Read more >Known issues with Android Studio and Android Gradle Plugin
Executing the Gradle check task from the IDE will also work. ... Could not get unknown property 'manifestOutputFile' for task ':myapp:processDebugManifest' ...
Read more >executionContext - Apollo GraphQL
The context of GraphQL operation execution. This can contain additional data contributed by interceptors. © 2022 CopyrightGenerated by dokka.
Read more >Execute Mobile Command - Appium
Syntax is execute("mobile: <commandName>", <JSON serializable argument>) (see Execute Script for more details on syntax). Android. UiAutomator2. Please refer to ...
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 FreeTop 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
Top GitHub Comments
Hi @sharq1 did you remember to run
react-native link realm
on your project?linked but same here