"require is not defined" in Electron >12.0.0
Closed this issue · 1 comments
Vadinci commented
See Electron's breaking changes list. This causes the script in index.html to break.
Simply adding contextIsolation: false
to the options object used to create an Electron window solved the issue for me, but I haven't looked at the security implications of that.
bigtimebuddy commented
Thanks for pointing this out @Vadinci 👍