-
-
Notifications
You must be signed in to change notification settings - Fork 57
Problem: ABI mismatch in Electron
Eugene Lazutkin edited this page Sep 9, 2020
·
3 revisions
As reported in #79 Electron uses different Node environments when building and running applications. While it usually works fine with pure JavaScript modules, it breaks with native modules due to ABI mismatch. Using Native Node Modules documents the process used by Electron to recompile native modules. Apparently this process fails when a module uses precompiled assets.
The document instructs to disable fetching precompiled assets and build everything from sources. It provides instructions for node-pre-gyp. While re2
doesn't use node-pre-gyp
, it does try to use precompiled assets. To disable this behavior define an environment variable DEVELOPMENT_SKIP_GETTING_ASSET
. Any non-empty value will do.