title: Uncaught Error: Bootstrap's JavaScript requires jQuery at bootstrap.min.js:6, in an electron app
body: <p>I have built an electron app that uses Angular framework. Inside 'index.html' file I load bootstrap and jquery. But after electron app is built using electron-packager. I see this error.</p>
  <pre><code>Uncaught Error: Bootstrap's JavaScript requires jQuery
      at bootstrap.min.js:6
  </code></pre>
  <p>From previous answers to this question I ensured jquery is loaded first and then the bootstrap. But still I see this error</p>
  <p>For ref I have attached the index.html</p>
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang=&quot;en&quot;&gt;
      &lt;head&gt;
        &lt;meta charset=&quot;utf-8&quot;&gt;
        &lt;title&gt;Demo App&lt;/title&gt;
        &lt;base href=&quot;./&quot;&gt;
        &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
        &lt;link rel=&quot;icon&quot; type=&quot;image/x-icon&quot; href=&quot;favicon.ico&quot;&gt;
        &lt;link rel=&quot;stylesheet&quot; href=&quot;https://fonts.googleapis.com/icon?family=Material+Icons&quot;&gt;
        &lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css&quot; integrity=&quot;sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u&quot; crossorigin=&quot;anonymous&quot;&gt;
        &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js&quot;&gt;&lt;/script&gt;
        &lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js&quot; integrity=&quot;sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>
  <p>But If I run the same as web app in browser, I don't see this error.
  Note : As you see in the index.html, I am using CDN for jquery and bootstrap.</p>
  <p>Any thoughts or suggestion would really be appreciated.</p>