question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting `Unknown execution context` on Android.

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
kristiandupontcommented, Jan 26, 2017

Hi @sharq1 did you remember to run react-native link realm on your project?

3reactions
barron9commented, May 20, 2017

linked but same here

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found