-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
plugin-electronegativity
error: "warn: Couldn't detect Electron version, assuming v0.1.0"
#2818
Comments
The Webpack plugin modifies the original package.json, setting forge/packages/plugin/webpack/src/WebpackPlugin.ts Lines 241 to 244 in 1f45e2c
When I believe this could be fixed by simply not modifying the original package.json file. While removing dependencies from the distributed package.json can be desirable, plugins shouldn't really introduce any side effects like this one. This behavior seems to exist just as an additional measure to prevent the whole node_modules directory to be packaged, as described in #593 (comment). But since the plugin already ignores anything outside the .webpack directory and does not call |
Pre-flight checklist
Electron Forge version
6.0.0-beta.63
Electron version
v18.1.0
Operating system
Ubuntu 20.04.4 / macOS 11.6.5 / Microsoft Windows Server 2022 10.0.20348
Last known working Electron Forge version
No response
Expected behavior
The Electron version must be auto-detected
Actual behavior
I configured the
plugin-electronegativity
in a brand new generated Electron+TS+Wepback project (thanks to https://www.electronforge.io/templates/typescript-+-webpack-template), following the plugin doc: https://www.electronforge.io/config/plugins/electronegativityIn my CI, running on Mac, Windows and Linux, when I run
yarn make
I have the following error:warn: Couldn't detect Electron version, assuming v0.1.0. Defaults have probably changed for your actual version, please check manually.
Steps to reproduce
yarn make
Additional information
No response
The text was updated successfully, but these errors were encountered: