Module did not self-register: drivelist.node #14845
Replies: 2 comments 1 reply
-
Hey @amaliagruia24, Sounds like |
Beta Was this translation helpful? Give feedback.
-
Specifically, this error ( Note that the launch configuration points to the "unbundled" sources, so you need to rebuild the native modules if you built the Electron variant in between launches. You could try to modify the launch configuration to point to the bundled variant instead, i.e. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have an application based on Theia and I am trying to debug the browser and electron applications, both frontend and backend. I am using the debug configurations defined in Theia IDE repo, here . If I try to debug the electron backend & frontend, everything works good. If I try to debug the browser backend using "Launch Browser Backend"/"Launch Browser Backend (eclipse.jdt.ls)", I get this in the debug console:
C:\Users\xxxxx\xxxxx\node_modules\bindings\bindings.js:121
throw e;
^
Error: Module did not self-register: '\?\C:\Users\xxxxxx\xxxx\node_modules\drivelist\build\Release\drivelist.node'.
at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at bindings (C:\Users\xxxxx\xxxx\node_modules\bindings\bindings.js:112:48)
at Object. (C:\Users\xxxxx\xxxx\node_modules\drivelist\js\index.js:25:27)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v18.18.2
If I start the browser application using yarn browser start, it works.
Any suggestions here? The recommended method to try and rebuild electron/browser does not help.
Beta Was this translation helpful? Give feedback.
All reactions