Skip to content

yarn start fails: module did not self-register #720

@ben-qnimble

Description

@ben-qnimble

Describe the bug
Cannot run 'yarn start' per the BUILDING.md instructions

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/arduino/arduino-ide.git
  2. cd arduino-ide
  3. yarn
  4. yarn rebuild:electron
  5. yarn start

Output is

~/git/testbuild$ yarn start
yarn run v1.22.17
$ yarn --cwd ./electron-app start
$ theia start --plugins=local-dir:../plugins
Starting backend process. PID: 300750
/home/user/git/testbuild/node_modules/bindings/bindings.js:121
        throw e;
        ^

Error: Module did not self-register: '/home/user/git/testbuild/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/bluey/git/testbuild/node_modules/bindings/bindings.js:112:48)
    at Object.<anonymous> (/home/bluey/git/testbuild/node_modules/drivelist/js/index.js:25:27)

Expected behavior
IDE to run.

Desktop (please complete the following information):

  • OS: Linux (Ubuntu 20.04 64bit) and Windows 10

Additional Info
I read the Theia IDE prerequisites documentation and installed node 12.22.8 and yarn 1.22.17 and I'm able to build the Theia example code. Additionally, I tried following the instructions in
https://github.com/arduino/arduino-ide/blob/cb51966d2392005e3489d360328a28280e373032/BUILDING.md (Pull #706 ) but step 3

cd electron-app
yarn rebuild:browser
cd ..

says command not found. I can run it in the root directory, but it makes no difference.

Also, this error looked similar to electron/rebuild#888 and eclipse-theia/theia#10429 so I tried switching to their 1.20.0 from 1.19.0 as that has the work-around pull request integrated, but I get the same error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions