title: Electron: jQuery is not defined
body: <p>Problem: while developing using Electron, when you try to use any JS plugin that requires jQuery, the plugin doesn't find jQuery, even if you load in the correct path using script tags.</p>
  
  <p>For example,</p>
  
  <pre><code>&lt;body&gt;
  &lt;p id="click-me"&gt;Click me!&lt;/p&gt;
  ...
  &lt;script src="node_modules/jquery/dist/jquery.min.js"&gt;&lt;/script&gt; //jQuery should be loaded now
  &lt;script&gt;$("#click-me").click(() =&gt; {alert("Clicked")});&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Running this code above wouldn't work. In fact, open up DevTools, go to the Console view, and click on the <code>&lt;p&gt;</code> element. You should see that <code>function $ is not defined</code> or something to that effect.</p>