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.

Realm Build Fails with electron-builder

See original GitHub issue

Goals

I was trying to install realm with an electron app. It successfully installs but build fails in the post install script of electron. "postinstall": "electron-builder install-app-deps"

Expected Results

Properly install electron and successfully build with the electron post install script.

Actual Results

[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.0.6: The platform "linux" is incompatible with this module.
info "fsevents@2.0.6" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 34 new dependencies.
info Direct dependencies
└─ realm@3.0.0-beta.1
info All dependencies
├─ agent-base@4.3.0
├─ array-back@1.0.4
├─ bl@1.2.2
├─ buffer-crc32@0.2.13
├─ command-line-args@4.0.7
├─ decompress-tar@4.1.1
├─ decompress-tarbz2@4.1.1
├─ decompress-targz@4.1.1
├─ decompress-unzip@4.0.1
├─ decompress@4.2.0
├─ deepmerge@2.1.0
├─ encoding@0.1.12
├─ es6-promise@4.2.8
├─ es6-promisify@5.0.0
├─ find-replace@1.0.3
├─ fs-constants@1.0.0
├─ graceful-readlink@1.0.1
├─ http-basic@2.5.1
├─ http-response-object@1.1.0
├─ https-proxy-agent@2.2.1
├─ is-natural-number@4.0.1
├─ node-fetch@1.7.3
├─ node-machine-id@1.1.12
├─ node-pre-gyp@0.11.0
├─ realm@3.0.0-beta.1
├─ seek-bzip@1.0.5
├─ stream-counter@1.0.0
├─ strip-dirs@2.1.0
├─ sync-request@3.0.1
├─ tar-stream@1.6.2
├─ test-value@2.1.0
├─ then-request@2.2.0
├─ to-buffer@1.1.1
└─ unbzip2-stream@1.3.3
$ electron-builder install-app-deps
  • electron-builder version=20.44.4
  • loaded configuration file=package.json ("build" field)
  • rebuilding native production dependencies platform=linux arch=x64
  • rebuilding native dependency name=realm
Error: /home/xtreme/.nvm/versions/node/v10.15.3/bin/node exited with code 1
Output:
yarn run v1.16.0
$ node-pre-gyp install --fallback-to-build
make: Entering directory '/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/build'
  TOUCH Release/obj.target/OpenSSL.stamp
  ACTION binding_gyp_vendored_realm_target_download_realm /media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/vendor/realm-linux-x64
Resolved requirements: { SYNC_SERVER_FOLDER: 'sync',
  SYNC_ARCHIVE: 'realm-sync-Release-v4.4.2-Linux-devel.tar.gz',
  CORE_SERVER_FOLDER: 'core',
  CORE_ARCHIVE: 'realm-core-Release-v5.19.1-Linux-devel.tar.gz' }
No lockfile found at the target, proceeding.
Download url: https://static.realm.io/downloads/core/realm-core-Release-v5.19.1-Linux-devel.tar.gz
Downloading realm-core-Release-v5.19.1-Linux-devel.tar.gz
Extracting realm-core-Release-v5.19.1-Linux-devel.tar.gz => /media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/vendor/realm-linux-x64
Download url: https://static.realm.io/downloads/sync/realm-sync-Release-v4.4.2-Linux-devel.tar.gz
Downloading realm-sync-Release-v4.4.2-Linux-devel.tar.gz
Extracting realm-sync-Release-v4.4.2-Linux-devel.tar.gz => /media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/vendor/realm-linux-x64
Success
  TOUCH Release/obj.target/vendored-realm.stamp
  TOUCH Release/obj.target/realm-core.stamp
  TOUCH Release/obj.target/realm-sync.stamp
  CXX(target) Release/obj.target/object-store/src/object-store/src/binding_callback_thread_observer.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/collection_notifications.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/index_set.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/list.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/object.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/object_schema.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/object_store.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/placeholder.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/results.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/schema.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/shared_realm.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/thread_safe_reference.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/collection_change_builder.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/collection_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/list_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/object_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/primitive_list_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/realm_coordinator.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/results_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/transact_log_handler.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/weak_realm_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/util/uuid.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/epoll/external_commit_helper.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/util/fifo.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/server/adapter.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/server/admin_realm.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/server/global_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/sync/impl/sync_file.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/sync/impl/sync_metadata.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/sync/impl/work_queue.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/sync/partial_sync.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/sync/sync_config.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/sync/sync_manager.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/sync/sync_session.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/sync/sync_user.o
  AR(target) Release/obj.target/object-store.a
  COPY Release/object-store.a
  CXX(target) Release/obj.target/realm/src/js_realm.o
  CXX(target) Release/obj.target/realm/src/node/node_init.o
realm.target.mk:139: recipe for target 'Release/obj.target/realm/src/node/node_init.o' failed
make: Leaving directory '/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/build'
Failed to execute '/home/xtreme/.nvm/versions/node/v10.15.3/bin/node /home/xtreme/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/compiled/electron-v5.0_linux_x64/realm.node --module_name=realm --module_path=/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/compiled/electron-v5.0_linux_x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v5.0' (1)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Error output:
warning package.json: License should be a valid SPDX license expression
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.11.0
node-pre-gyp info using node@10.15.3 | linux | x64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp http GET https://static.realm.io/node-pre-gyp/3.0.0-beta.1/realm-v3.0.0-beta.1-electron-v5.0-linux-x64.tar.gz
node-pre-gyp http 404 https://static.realm.io/node-pre-gyp/3.0.0-beta.1/realm-v3.0.0-beta.1-electron-v5.0-linux-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://static.realm.io/node-pre-gyp/3.0.0-beta.1/realm-v3.0.0-beta.1-electron-v5.0-linux-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for realm@3.0.0-beta.1 and electron@5.0.4 (electron-v5.0 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://static.realm.io/node-pre-gyp/3.0.0-beta.1/realm-v3.0.0-beta.1-electron-v5.0-linux-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.3 | linux | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.3 | linux | x64
gyp http GET https://atom.io/download/electron/v5.0.4/node-v5.0.4-headers.tar.gz
gyp http 200 https://atom.io/download/electron/v5.0.4/node-v5.0.4-headers.tar.gz
gyp http GET https://atom.io/download/electron/v5.0.4/SHASUMS256.txt
gyp http 200 https://atom.io/download/electron/v5.0.4/SHASUMS256.txt
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/home/xtreme/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/xtreme/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/xtreme/.electron-gyp/5.0.4/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/xtreme/.electron-gyp/5.0.4',
gyp info spawn args   '-Dnode_gyp_dir=/home/xtreme/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/xtreme/.electron-gyp/5.0.4/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.3 | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
In file included from ../src/node/node_string.hpp:21:0,
                 from ../src/node/node_init.hpp:21,
                 from ../src/node/node_init.cpp:19:
../src/node/node_types.hpp:52:46: error: ‘NamedPropertyGetterCallback’ in namespace ‘v8’ does not name a type
     using StringPropertyGetterCallback = v8::NamedPropertyGetterCallback;
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/node/node_types.hpp:53:46: error: ‘NamedPropertySetterCallback’ in namespace ‘v8’ does not name a type
     using StringPropertySetterCallback = v8::NamedPropertySetterCallback;
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/node/node_types.hpp:54:50: error: ‘NamedPropertyEnumeratorCallback’ in namespace ‘v8’ does not name a type
     using StringPropertyEnumeratorCallback = v8::NamedPropertyEnumeratorCallback;
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/node/node_init.hpp:24:0,
                 from ../src/node/node_init.cpp:19:
../src/node/node_object.hpp: In lambda function:
../src/node/node_object.hpp:32:80: warning: comparison is always true due to limited range of data type [-Wtype-limits]
     if (std::all_of(key.data(), key.data() + key.size(), [](char c) { return c <= 127; })) {
                                                                              ~~^~~~~~
In file included from ../src/node/node_init.hpp:25:0,
                 from ../src/node/node_init.cpp:19:
../src/node/node_function.hpp: In static member function ‘static realm::js::Function<T>::ValueType realm::js::Function<T>::callback(realm::js::Function<T>::ContextType, const FunctionType&, const ObjectType&, size_t, const ValueType*) [with T = realm::node::Types; realm::js::Function<T>::ValueType = v8::Local<v8::Value>; realm::js::Function<T>::ContextType = v8::Isolate*; realm::js::Function<T>::FunctionType = v8::Local<v8::Function>; realm::js::Function<T>::ObjectType = v8::Local<v8::Object>; size_t = long unsigned int]’:
../src/node/node_function.hpp:41:19: error: ‘class v8::Isolate’ has no member named ‘GetCallingContext’; did you mean ‘GetCurrentContext’?
     if (!isolate->GetCallingContext().IsEmpty()) {
                   ^~~~~~~~~~~~~~~~~
                   GetCurrentContext
In file included from ../src/node/node_init.hpp:29:0,
                 from ../src/node/node_init.cpp:19:
../src/node/node_class.hpp: In static member function ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template()’:
../src/node/node_class.hpp:191:23: error: ‘class v8::ObjectTemplate’ has no member named ‘SetNamedPropertyHandler’; did you mean ‘SetIndexedPropertyHandler’?
         instance_tpl->SetNamedPropertyHandler(string_accessor.getter ? string_accessor.getter : get_nonexistent_property, set_property, 0, 0, string_accessor.enumerator);
                       ^~~~~~~~~~~~~~~~~~~~~~~
                       SetIndexedPropertyHandler
In file included from ../src/node/node_class.hpp:23:0,
                 from ../src/node/node_init.hpp:29,
                 from ../src/node/node_init.cpp:19:
../src/js_class.hpp: In instantiation of ‘struct realm::js::StringPropertyType<realm::node::Types>’:
../src/node/node_class.hpp:368:34:   required from here
../src/js_class.hpp:92:46: error: no type named ‘StringPropertyGetterCallback’ in ‘struct realm::node::Types’
     typename T::StringPropertyGetterCallback getter;
                                              ^~~~~~
../src/js_class.hpp:93:46: error: no type named ‘StringPropertySetterCallback’ in ‘struct realm::node::Types’
     typename T::StringPropertySetterCallback setter;
                                              ^~~~~~
../src/js_class.hpp:94:50: error: no type named ‘StringPropertyEnumeratorCallback’ in ‘struct realm::node::Types’
     typename T::StringPropertyEnumeratorCallback enumerator;
                                                  ^~~~~~~~~~
In file included from ../src/node/node_init.hpp:29:0,
                 from ../src/node/node_init.cpp:19:
../src/node/node_class.hpp: In instantiation of ‘realm::js::RealmObjectClass<realm::node::Types> realm::node::ObjectWrap<realm::js::RealmObjectClass<realm::node::Types> >::s_class’:
../src/node/node_class.hpp:137:31:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::RealmObjectClass<realm::node::Types>]’
../src/js_realm.hpp:404:99:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:128:11: error: too many initializers for ‘const realm::js::StringPropertyType<realm::node::Types>’
 ClassType ObjectWrap<ClassType>::s_class;
           ^~~~~~~~~~~~~~~~~~~~~
In file included from ../src/js_list.hpp:23:0,
                 from ../src/js_object_accessor.hpp:21,
                 from ../src/node/node_init.hpp:32,
                 from ../src/node/node_init.cpp:19:
../src/js_realm_object.hpp:54:8: error: too many initializers for ‘const realm::js::StringPropertyType<realm::node::Types>’
 struct RealmObjectClass : ClassDefinition<T, realm::js::RealmObject<T>> {
        ^~~~~~~~~~~~~~~~
In file included from ../src/node/node_init.hpp:29:0,
                 from ../src/node/node_init.cpp:19:
../src/node/node_class.hpp:128:11: note: synthesized method ‘constexpr realm::js::RealmObjectClass<realm::node::Types>::RealmObjectClass()’ first required here 
 ClassType ObjectWrap<ClassType>::s_class;
           ^~~~~~~~~~~~~~~~~~~~~
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::RealmClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::RealmClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::RealmClass<realm::node::Types>]’
../src/js_realm.hpp:400:86:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::CollectionClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::CollectionClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::CollectionClass<realm::node::Types>]’
../src/js_realm.hpp:401:96:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::ListClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::ListClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::ListClass<realm::node::Types>]’
../src/js_realm.hpp:402:84:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::ResultsClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::ResultsClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::ResultsClass<realm::node::Types>]’
../src/js_realm.hpp:403:90:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::RealmObjectClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::RealmObjectClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::RealmObjectClass<realm::node::Types>]’
../src/js_realm.hpp:404:99:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::SyncClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::SyncClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::SyncClass<realm::node::Types>]’
../src/js_sync.hpp:995:84:   required from ‘static typename T::Function realm::js::SyncClass<T>::create_constructor(realm::js::SyncClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::SyncClass<T>::ContextType = v8::Isolate*]’
../src/js_realm.hpp:413:69:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::UserClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::UserClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::UserClass<realm::node::Types>]’
../src/js_sync.hpp:998:104:   required from ‘static typename T::Function realm::js::SyncClass<T>::create_constructor(realm::js::SyncClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::SyncClass<T>::ContextType = v8::Isolate*]’
../src/js_realm.hpp:413:69:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::SessionClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::SessionClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::SessionClass<realm::node::Types>]’
../src/js_sync.hpp:999:110:   required from ‘static typename T::Function realm::js::SyncClass<T>::create_constructor(realm::js::SyncClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::SyncClass<T>::ContextType = v8::Isolate*]’
../src/js_realm.hpp:413:69:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::AdapterClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::AdapterClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::AdapterClass<realm::node::Types>]’
../src/js_sync.hpp:1001:110:   required from ‘static typename T::Function realm::js::SyncClass<T>::create_constructor(realm::js::SyncClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::SyncClass<T>::ContextType = v8::Isolate*]’
../src/js_realm.hpp:413:69:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::ObservableClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::ObservableClass<realm::node::Types>]’
../src/node/node_class.hpp:168:90:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::RealmClass<realm::node::Types>]’
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::RealmClass<realm::node::Types>]’
../src/node/node_class.hpp:134:55:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::RealmClass<realm::node::Types>]’
../src/js_realm.hpp:400:86:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::SubscriptionClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::SubscriptionClass<realm::node::Types>]’
../src/node/node_class.hpp:148:55:   required from ‘static v8::Local<v8::Object> realm::node::ObjectWrap<ClassType>::create_instance(v8::Isolate*, realm::node::ObjectWrap<ClassType>::Internal*) [with ClassType = realm::js::SubscriptionClass<realm::node::Types>; realm::node::ObjectWrap<ClassType>::Internal = realm::js::Subscription<realm::node::Types>]’
../src/node/node_object.hpp:146:56:   required from ‘static realm::js::Object<T>::ObjectType realm::js::Object<T>::create_instance(realm::js::Object<T>::ContextType, typename ClassType::Internal*) [with ClassType = realm::js::SubscriptionClass<realm::node::Types>; T = realm::node::Types; realm::js::Object<T>::ObjectType = v8::Local<v8::Object>; realm::js::Object<T>::ContextType = v8::Isolate*; typename ClassType::Internal = realm::js::Subscription<realm::node::Types>]’
../src/js_types.hpp:356:58:   required from ‘typename T::Object realm::js::create_object(typename T::Context, typename ClassType::Internal*) [with T = realm::node::Types; ClassType = realm::js::SubscriptionClass<realm::node::Types>; typename T::Object = v8::Local<v8::Object>; typename T::Context = v8::Isolate*; typename ClassType::Internal = realm::js::Subscription<realm::node::Types>]’
../src/js_sync.hpp:848:50:   required from ‘static typename T::Object realm::js::SubscriptionClass<T>::create_instance(realm::js::SubscriptionClass<T>::ContextType, realm::partial_sync::Subscription, realm::util::Optional<std::basic_string<char> >) [with T = realm::node::Types; typename T::Object = v8::Local<v8::Object>; realm::js::SubscriptionClass<T>::ContextType = v8::Isolate*]’
../src/js_results.hpp:388:59:   required from ‘static void realm::js::ResultsClass< <template-parameter-1-1> >::subscribe(realm::js::ResultsClass< <template-parameter-1-1> >::ContextType, realm::js::ResultsClass< <template-parameter-1-1> >::ObjectType, realm::js::ResultsClass< <template-parameter-1-1> >::Arguments&, realm::js::ResultsClass< <template-parameter-1-1> >::ReturnValue&) [with T = realm::node::Types; realm::js::ResultsClass< <template-parameter-1-1> >::ContextType = v8::Isolate*; realm::js::ResultsClass< <template-parameter-1-1> >::ObjectType = v8::Local<v8::Object>; realm::js::ResultsClass< <template-parameter-1-1> >::Arguments = realm::js::Arguments<realm::node::Types>; realm::js::ResultsClass< <template-parameter-1-1> >::ReturnValue = realm::js::ReturnValue<realm::node::Types>]’
../src/js_results.hpp:123:23:   required from ‘realm::js::ResultsClass<realm::node::Types> realm::node::ObjectWrap<realm::js::ResultsClass<realm::node::Types> >::s_class’
../src/node/node_class.hpp:137:31:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::ResultsClass<realm::node::Types>]’
../src/js_realm.hpp:403:90:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::GlobalNotifierClass<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::GlobalNotifierClass<realm::node::Types>]’
../src/node/node_class.hpp:148:55:   required from ‘static v8::Local<v8::Object> realm::node::ObjectWrap<ClassType>::create_instance(v8::Isolate*, realm::node::ObjectWrap<ClassType>::Internal*) [with ClassType = realm::js::GlobalNotifierClass<realm::node::Types>; realm::node::ObjectWrap<ClassType>::Internal = realm::GlobalNotifier]’
../src/node/node_object.hpp:146:56:   required from ‘static realm::js::Object<T>::ObjectType realm::js::Object<T>::create_instance(realm::js::Object<T>::ContextType, typename ClassType::Internal*) [with ClassType = realm::js::GlobalNotifierClass<realm::node::Types>; T = realm::node::Types; realm::js::Object<T>::ObjectType = v8::Local<v8::Object>; realm::js::Object<T>::ContextType = v8::Isolate*; typename ClassType::Internal = realm::GlobalNotifier]’
../src/js_types.hpp:356:58:   required from ‘typename T::Object realm::js::create_object(typename T::Context, typename ClassType::Internal*) [with T = realm::node::Types; ClassType = realm::js::GlobalNotifierClass<realm::node::Types>; typename T::Object = v8::Local<v8::Object>; typename T::Context = v8::Isolate*; typename ClassType::Internal = realm::GlobalNotifier]’
../src/js_sync.hpp:1326:62:   required from ‘static void realm::js::SyncClass<T>::create_global_notifier(realm::js::SyncClass<T>::ContextType, realm::js::SyncClass<T>::ObjectType, realm::js::SyncClass<T>::Arguments&, realm::js::SyncClass<T>::ReturnValue&) [with T = realm::node::Types; realm::js::SyncClass<T>::ContextType = v8::Isolate*; realm::js::SyncClass<T>::ObjectType = v8::Local<v8::Object>; realm::js::SyncClass<T>::Arguments = realm::js::Arguments<realm::node::Types>; realm::js::SyncClass<T>::ReturnValue = realm::js::ReturnValue<realm::node::Types>]’
../src/js_sync.hpp:986:29:   required from ‘realm::js::SyncClass<realm::node::Types> realm::node::ObjectWrap<realm::js::SyncClass<realm::node::Types> >::s_class’
../src/node/node_class.hpp:137:31:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::SyncClass<realm::node::Types>]’
../src/js_sync.hpp:995:84:   required from ‘static typename T::Function realm::js::SyncClass<T>::create_constructor(realm::js::SyncClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::SyncClass<T>::ContextType = v8::Isolate*]’
../src/js_realm.hpp:413:69:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
../src/node/node_class.hpp: In instantiation of ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::create_template() [with ClassType = realm::js::ChangeObject<realm::node::Types>]’:
../src/node/node_class.hpp:49:81:   required from ‘static v8::Local<v8::FunctionTemplate> realm::node::ObjectWrap<ClassType>::get_template() [with ClassType = realm::js::ChangeObject<realm::node::Types>]’
../src/node/node_class.hpp:148:55:   required from ‘static v8::Local<v8::Object> realm::node::ObjectWrap<ClassType>::create_instance(v8::Isolate*, realm::node::ObjectWrap<ClassType>::Internal*) [with ClassType = realm::js::ChangeObject<realm::node::Types>; realm::node::ObjectWrap<ClassType>::Internal = realm::GlobalNotifier::ChangeNotification]’
../src/node/node_object.hpp:146:56:   required from ‘static realm::js::Object<T>::ObjectType realm::js::Object<T>::create_instance(realm::js::Object<T>::ContextType, typename ClassType::Internal*) [with ClassType = realm::js::ChangeObject<realm::node::Types>; T = realm::node::Types; realm::js::Object<T>::ObjectType = v8::Local<v8::Object>; realm::js::Object<T>::ContextType = v8::Isolate*; typename ClassType::Internal = realm::GlobalNotifier::ChangeNotification]’
../src/js_types.hpp:356:58:   required from ‘typename T::Object realm::js::create_object(typename T::Context, typename ClassType::Internal*) [with T = realm::node::Types; ClassType = realm::js::ChangeObject<realm::node::Types>; typename T::Object = v8::Local<v8::Object>; typename T::Context = v8::Isolate*; typename ClassType::Internal = realm::GlobalNotifier::ChangeNotification]’
../src/js_sync.hpp:1393:55:   required from ‘static void realm::js::SyncClass<T>::deserialize_change_set(realm::js::SyncClass<T>::ContextType, realm::js::SyncClass<T>::ObjectType, realm::js::SyncClass<T>::Arguments&, realm::js::SyncClass<T>::ReturnValue&) [with T = realm::node::Types; realm::js::SyncClass<T>::ContextType = v8::Isolate*; realm::js::SyncClass<T>::ObjectType = v8::Local<v8::Object>; realm::js::SyncClass<T>::Arguments = realm::js::Arguments<realm::node::Types>; realm::js::SyncClass<T>::ReturnValue = realm::js::ReturnValue<realm::node::Types>]’
../src/js_sync.hpp:988:35:   required from ‘realm::js::SyncClass<realm::node::Types> realm::node::ObjectWrap<realm::js::SyncClass<realm::node::Types> >::s_class’
../src/node/node_class.hpp:137:31:   required from ‘static v8::Local<v8::Function> realm::node::ObjectWrap<ClassType>::create_constructor(v8::Isolate*) [with ClassType = realm::js::SyncClass<realm::node::Types>]’
../src/js_sync.hpp:995:84:   required from ‘static typename T::Function realm::js::SyncClass<T>::create_constructor(realm::js::SyncClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::SyncClass<T>::ContextType = v8::Isolate*]’
../src/js_realm.hpp:413:69:   required from ‘static typename T::Function realm::js::RealmClass<T>::create_constructor(realm::js::RealmClass<T>::ContextType) [with T = realm::node::Types; typename T::Function = v8::Local<v8::Function>; realm::js::RealmClass<T>::ContextType = v8::Isolate*]’
../src/node/node_init.cpp:30:72:   required from here
../src/node/node_class.hpp:188:33: error: ‘const struct realm::js::StringPropertyType<realm::node::Types>’ has no member named ‘getter’; did you mean ‘GetterType’?
     if (s_class.string_accessor.getter || s_class.index_accessor.getter || s_class.index_accessor.setter) {
         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
         GetterType
make: *** [Release/obj.target/realm/src/node/node_init.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/xtreme/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.15.0-52-generic
gyp ERR! command "/home/xtreme/.nvm/versions/node/v10.15.3/bin/node" "/home/xtreme/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/compiled/electron-v5.0_linux_x64/realm.node" "--module_name=realm" "--module_path=/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/compiled/electron-v5.0_linux_x64" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v5.0"
gyp ERR! cwd /media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/home/xtreme/.nvm/versions/node/v10.15.3/bin/node /home/xtreme/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/compiled/electron-v5.0_linux_x64/realm.node --module_name=realm --module_path=/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/compiled/electron-v5.0_linux_x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v5.0' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 4.15.0-52-generic
node-pre-gyp ERR! command "/home/xtreme/.nvm/versions/node/v10.15.3/bin/node" "/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/realm
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok 
error Command failed with exit code 1.

    at ChildProcess.childProcess.once.code (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/builder-util/src/util.ts:244:14)
    at Object.onceWrapper (events.js:277:13)
    at ChildProcess.emit (events.js:189:13)
    at maybeClose (internal/child_process.js:970:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
From previous event:
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at /media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/app-builder-lib/src/util/yarn.ts:155:24
From previous event:
    at _rebuild (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/app-builder-lib/src/util/yarn.ts:179:5)
    at rebuild (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/app-builder-lib/out/util/yarn.js:163:19)
    at /media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/app-builder-lib/src/util/yarn.ts:20:11
From previous event:
    at _installOrRebuild (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/app-builder-lib/out/util/yarn.js:71:28)
    at installOrRebuild (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/app-builder-lib/out/util/yarn.js:55:28)
    at /media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/electron-builder/src/cli/install-app-deps.ts:58:9
    at Generator.next (<anonymous>)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at _installAppDeps (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/electron-builder/out/cli/install-app-deps.js:177:26)
    at installAppDeps (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/electron-builder/out/cli/install-app-deps.js:146:26)
    at then (/media/xtreme/447ABACB7ABAB8CE/netObjex/Helix-Phase-2/wallet/src/desktop/node_modules/electron-builder/src/cli/cli.ts:49:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Steps to Reproduce

yarn add realm

Version of Realm and Tooling

  • Realm JS SDK Version: ^3.0.0-beta.1
  • Node : 10.15.3
  • Client OS & Version: Ubuntu 18.04.2 LTS ( The same error is also happening in mac OS mojave)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
arashmilanicommented, Jun 24, 2019

It seems the latest version of electron is not working with Realm. I tried downgrading the electron to 4.2.5 and it works with realm 3.0.0-beta.1.

0reactions
knethcommented, Jun 28, 2019

From the error message

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libcrypto.a(sha256.o): relocation R_X86_64_PC32 against symbol `SHA224_Init' can not be used when making a shared object; recompile with -fPIC

it looks like an issue when linking with OpenSSL (probably not compiled correctly).

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Realm Not Working with Packaged Electron App
Everything works fine when running in dev, but when I package this with electron-builder, the app does not work. I moved createWindow() to ......
Read more >
Realm Not Working with Packaged Electron App - MongoDB
I suspect this is some sort of path/permissions issue with the .realm file. In main.js , I changed the path in the realm...
Read more >
Code Signing - electron-builder
To sign app on build server you need to set CSC_LINK , CSC_KEY_PASSWORD : ... the password because “values are not escaped when...
Read more >
electron-builder
A complete solution to package and build a ready for distribution Electron app for macOS, Windows and Linux with “auto update” support out...
Read more >
Any macOS Target - electron-builder
The top-level mac key contains set of options instructing electron-builder on how it should build macOS targets. These options applicable for any macOS ......
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