You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a weird "bug" (feature?) in the Electron CLI, whereby electron . (assuming package.json and a correct main property pointing to dist/main.js) is different than electron dist/main.js. The former works great, the latter breaks when Electron renderer process is launched from a code bundle that contains Node CommonJS require() calls to externalized packages.
Unfortunately, the VSCode launch configuration results in the latter. Thankfully, we can fix that by using an "attach" configuration to an existing Electron process.
The text was updated successfully, but these errors were encountered:
There's a weird "bug" (feature?) in the Electron CLI, whereby
electron .
(assumingpackage.json
and a correctmain
property pointing todist/main.js
) is different thanelectron dist/main.js
. The former works great, the latter breaks when Electron renderer process is launched from a code bundle that contains Node CommonJSrequire()
calls to externalized packages.Unfortunately, the VSCode launch configuration results in the latter. Thankfully, we can fix that by using an "attach" configuration to an existing Electron process.
The text was updated successfully, but these errors were encountered: