Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed
<p>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:</p>

<pre><code>var dbr = require('./build/Release/dbr');
</code></pre>

<p><a href="https://i.stack.imgur.com/o22pU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/o22pU.png" alt="enter image description here"></a></p>

<p>Something wrong with <strong>ATOM_SHELL_ASAR.js</strong>.
<a href="https://i.stack.imgur.com/JwJTU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JwJTU.png" alt="enter image description here"></a></p>

<p>The issue only occurred on Windows. On Linux and Mac, it worked well.</p>

<p>How can I fix it? </p>

<p>Thanks!</p>