You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only difference (assumed) between the branches: New electron version.
Error
Uncaught Error: A dynamic link library (DLL) initialization routine failed.
\?\C:\Users\marku\AppData\Local\Programs\electron_native_node_demo\resources\app.asar.unpacked\node_modules\spielwiese\build\Release\spielwiese.node
at process.func (electron/js2c/asar.js:155)
at process.func [as dlopen] (electron/js2c/asar.js:155)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:828)
at Object.func (electron/js2c/asar.js:155)
at Object.func [as .node] (electron/js2c/asar.js:164)
at Module.load (internal/modules/cjs/loader.js:645)
at Function.Module._load (internal/modules/cjs/loader.js:560)
at Module.require (internal/modules/cjs/loader.js:685)
at require (internal/modules/cjs/helpers.js:16)
at index.html:10
Screenshots
Additional Information
The text was updated successfully, but these errors were encountered:
Yeah same problem I've bump into yesterday. The fun fact that the stack trace is fun as hell', I tried to debug but I believe devs from electron have a better knowledge how to do it well.
Hopefully it will be fixed soon, thanks gl hf!
FWIW I have built an add on that used n-api and it works with Electron 6. I took a quick look and built your distribution. However you are using CMake-js to build your plugin and I can't really see the magic it is doing. My guess is the problem lies there, not with Electron. Try building it with node-gyp and then use electron-builder to rebuild your plugin targeting Electron via the install-app-deps command. I have these scripts setup to do that:
Preflight Checklist
Issue Details
Expected Behavior
Native node module still works in new electron version
Actual Behavior
DLL initialization error at runtime
To Reproduce
Yarn install and yarn dist of https://github.com/Superlokkus/electron-native-node-demo/tree/actual_napi_use_with_electron_update
Then run the executable: DLL error
Yarn install and yarn dist https://github.com/Superlokkus/electron-native-node-demo/tree/actual_napi_use
Then run the executable: Works as intended
Only difference (assumed) between the branches: New electron version.
Error
Screenshots
Additional Information
The text was updated successfully, but these errors were encountered: