RSATom / WebChimera.js

[ABANDONED] libvlc binding for Electron
GNU Lesser General Public License v2.1
661 stars 105 forks source link

Module did not self-register #140

Closed Nemanja02 closed 3 years ago

Nemanja02 commented 3 years ago

Uncaught Error: Module did not self-register: '\\?\D:\testapp\update\node_modules\webchimera.js\WebChimera.js.node'. at process.func [as dlopen] (electron/js2c/asar_bundle.js:5) at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138) at Object.func [as .node] (electron/js2c/asar_bundle.js:5) at Module.load (internal/modules/cjs/loader.js:935) at Module._load (internal/modules/cjs/loader.js:776) at Function.f._load (electron/js2c/asar_bundle.js:5) at Function.o._load (electron/js2c/renderer_init.js:33) at Module.require (internal/modules/cjs/loader.js:959) at require (internal/modules/cjs/helpers.js:88) at Object.<anonymous> (D:\testapp\update\node_modules\webchimera.js\index.js:1)

Electron version: 11.1.0 VLC version: 3.0.11

RSATom commented 3 years ago

Don't sure if it's your case but native modules (.node) can't work if are placed into .asar

Nemanja02 commented 3 years ago

It worked few months ago. I have reinstalled my windows and now it throws error that module did not self register. My guess is that I am using wrong node or npm version, but I am not sure.

RSATom commented 3 years ago

Then I would recommend you check if all your binaries (Electron and WebChimera.js) are 64 bit or 32 bit.

hondek commented 3 years ago

Im currently using "WebChimera.js_v0.3.1_electron_v11.1.0_VLC_v3.0.11_x64_win" from this site: https://github.com/RSATom/WebChimera.js/releases on electron 11 and everything working fine. Check that filesize WebChimera.js.node is 437KB

RSATom commented 3 years ago

@Nemanja02 please confirm you still have issue with the latest WebChimera.js version

dbussert commented 3 years ago

I received this error when my electron version did not match my precompiled binaries. You might have installed electron 12 when you reinstalled Windows

RSATom commented 3 years ago

closed due to no answer from author