<ul dir="auto">
<li>Electron Version: ^2.0.5</li>
<li>Operating System (Platform and Version): <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14015029" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/1" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/1/hovercard" href="https://github.com/electron/electron/issues/1">#1</a> SMP Debian 4.9.88-1+deb9u1 (2018-05-07)</li>
<li>Last known working Electron version: I'm just testing electron now</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Load bootstrap initial needed files</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Getting "Cannot read property 'fn' of undefined"</p>
<p dir="auto"><strong>To Reproduce</strong><br>
On this test I'm just creating a total clear index html page. Just like quick start examples</p>
<p dir="auto"><strong>Additional Info</strong><br>
In this link I got a workaround hack to make it work<br>
<a href="https://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined" rel="nofollow">https://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined</a></p>
<p dir="auto"><strong>Screenshot</strong></p>
<p dir="auto">In the left window you can see the application running under Electron with that fail message. In the right I'm loaded exactly same file but directly in the google chrome browser.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2068045/43041196-2109b6b4-8d2f-11e8-8f1b-75134b6ccc5a.png"><img src="https://user-images.githubusercontent.com/2068045/43041196-2109b6b4-8d2f-11e8-8f1b-75134b6ccc5a.png" alt="captura de tela de 2018-07-21 21-36-56" style="max-width: 100%;"></a></p>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">12.0.12</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">macOS Big Sur 11.4</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">If nodeIntegrationInWorker is enabled, node modules could be required in web worker regardless of whether use custom protocol or not.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">If web worker is delivered by custom protocol, cannot find module error occurs.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><a href="https://gist.github.com/juchan1220/636574b514984bd629774268162292c7">https://gist.github.com/juchan1220/636574b514984bd629774268162292c7</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I guess the cause of this issue is <a href="https://github.com/electron/electron/blob/main/lib/worker/init.ts">lib/worker/init.ts</a> sets global.module.paths only when web worker is delivered by <code class="notranslate">file:</code> protocol.</p>
<p dir="auto">possible duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="811450549" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/27802" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/27802/hovercard" href="https://github.com/electron/electron/issues/27802">#27802</a>?</p>