Cannot include js file in Electron
<p>In my HTML file, I included a script like:</p>

<p><code>&lt;script src="js/index.js"&gt;&lt;/script&gt;</code></p>

<p>In my script, I try to add a <code>configuration.js</code> file just by writing <code>const Configuration = require("./configuration");</code>. <code>configuration.js</code> is in the same folder with <code>index.js</code>. But on console it says:</p>

<pre><code>Uncaught Error: Cannot find module './configuration'
</code></pre>

<p>configuration.js and index.js files are both in <code>/app/js/</code> folder.</p>

<p>What is a solution to that? I can include Node.js modules like Lodash for example.</p>