Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLL init failure in Electron #172

Open
TesseraSkye opened this issue Jul 19, 2020 · 1 comment
Open

DLL init failure in Electron #172

TesseraSkye opened this issue Jul 19, 2020 · 1 comment
Labels

Comments

@TesseraSkye
Copy link

TesseraSkye commented Jul 19, 2020

Trying to get the midi library to run in Electron, I've been unsuccessful thus far. upon trying to import the module, I receive an error stating:

Uncaught Error: A dynamic link library (DLL) initialization routine failed. \\?\PROJECTPATH\node_modules\midi\build\Release\midi.node at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20) at Object.Module._extensions..node (module.js:671:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Module.require (module.js:586:17) at require (internal/module.js:11:18) at bindings (PROJECTPATH\node_modules\bindings\bindings.js:112:48) at Object.<anonymous> (PROJECTPATH\node_modules\midi\midi.js:1:186)

I've called electron-build to try and fix a mismatch in node version, and it doesn't seem to have helped any.

@m9dfukc
Copy link

m9dfukc commented May 7, 2021

To fix the version mismatch you need to rebuild node-midi via https://github.com/electron/electron-rebuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants