I am new to integrating node with native libraries along with electron, I am basically just stuck at the very beginning of this field. After reading docs, i found node-ffi best package where i can integrate .lib, .h and .dll files. I have also used electron-rebuild after installation of ffi node module, which is common solution for my error, but it didnt work. Please someone help me on this.
What line causes issue is this simple initialization:
var ffi = require("ffi");
I am getting following error
Error: A dynamic link library (DLL) initialization routine failed.
\\?\D:\XXXXXX\app\serialpro\node_modules\ref\build\Release\binding.node
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at bindings (D:\XXXXXX\app\serialpro\node_modules\bindings\bindings.js:76:44)
at Object.<anonymous> (D:\XXXXXX\app\serialpro\node_modules\ref\lib\ref.js:5:47)
via Vikram
No comments:
Post a Comment