Electron app fails after adding vscode-builtin-cpp


I just added support for vscode-builtin-cpp in my Theia app. While the browser application works as expected, the Electron app fails to launch:

yarn run v1.22.5
$ theia start --plugins=local-dir:plugins ../../me_emulator/lib/
        throw e;

Error: Module did not self-register: '/home/me/git/me_sensorsdk/me_editor/node_modules/drivelist/build/Release/drivelist.node'.
    at process.func [as dlopen] (electron/js2c/asar.js:140:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1034:18)
    at Object.func [as .node] (electron/js2c/asar.js:140:31)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at bindings (/home/me/git/me_sensorsdk/me_editor/node_modules/bindings/bindings.js:112:48)
    at Object.<anonymous> (/home/me/git/me_sensorsdk/me_editor/node_modules/drivelist/js/index.js:25:27)

At the end of prepare, I get this cryptic output:

    at /home/me/git/me_sensorsdk/me_editor/node_modules/execa/index.js:236:11
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:15633) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
(node:15633) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
error Command failed with exit code 1.

Any clue?


I forgot to yarn rebuild:electron… The Electron app does start. Then I forgot to update vscode-builtin-cpp version number in package.json – all good now. Sorry!