Skip to content
Advertisement

Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

I’ve successfully built node.js addon, which works well with Node on Windows. Now, I want to create a Windows app using Electron. When loading the module in HTML file, I got the error:

var dbr = require('./build/Release/dbr');

enter image description here

Something wrong with ATOM_SHELL_ASAR.js. enter image description here

The issue only occurred on Windows. On Linux and Mac, it worked well.

How can I fix it?

Thanks!

Advertisement

Answer

You need to rebuild your native Node addon for Electron, the steps are outlined in the docs.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement