-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
electron 13.x #450
Comments
so none of these electron-wepack quick starts are working. |
I think you need
|
@parliament718 That will work, but also bypasses some security rules and could lead to vulnerabilities, so be careful. |
@szTheory This may be true but it appears electron-webpack is currently set up with the assumption that nodeIntegration is true. Here's more info on this https://gist.github.com/earksiinni/053470a04defc6d7dfaacd5e5a073b15 It's a shame this library isn't maintained and there aren't really any good alternatives. Electron build infrastructure has been the bane of my existence for a while now. Many many hours have been wasted. |
The approach I am going with is to rip out electron-webpack and just use the TypeScript compiler directly instead of babel. Migrating has been a pain in the butt though because as it turns out even new versions of Electron somehow don't support ES modules, even though the versions of Node they are based on do. So they are pushing you to these new secure defaults without node integration, even while they leave you only with CommonJS modules. Seems to me like a contradiction. There's a huge Github issue thread about it here electron/electron#21457 including some supposed workarounds I haven't tried yet. None of this is officially documented AFAIK. |
The recommended way forward with a supported recent electron version and webpack 5 is to use the webpack template provided with electron-forge, e.g.
|
Hello fellow users. No maintainer out there so maybe one of you can help me. I'm trying to use all the latest packages and framework right now. Electron 13.x defaults to
contextIsolation: false
. Because of that I get errors.I have spent a few days trying to work around this issue. I'm still trying :) Maybe someone can give me assistance. Thank you.
The text was updated successfully, but these errors were encountered: