Questions tagged [electron-forge]
392 questions
31
votes
2 answers
electron-forge make won't build
An unhandled rejection has occurred inside Forge:
Error: Cannot make for rpm, the following external binaries need to be installed: rpmbuild
at MakerRpm.ensureExternalBinariesExist…

Tiny Tophy
- 319
- 1
- 3
- 5
19
votes
2 answers
How to set the app icon using electron-forge package on Mac?
Can somebody please tell me the instructions for using a custom icon, when compiling an electron app (on mac) when using electron-forge package? Using --icon gives me an error:
error: unknown option `--icon'
What am I missing?

Will Stone
- 4,626
- 3
- 21
- 29
15
votes
5 answers
Cannot read property 'createSnapshot' of undefined
Since I used Electron forge webpack plugin, when I execute npm start, it will cause an error after step Compiling Preload Scripts. It says the error is inside Forge.
I check it out, it's an error in file watcher api, that…

TheColdPot
- 333
- 1
- 2
- 9
14
votes
4 answers
Electron Forge - Can't use ipcRenderer in the renderer file
I just created a new application using the following command:
npx create-electron-app my-new-app --template=typescript-webpack
Inside the renderer.ts I added the following code
import "./index.css";
import { ipcRenderer } from "electron";
But when…

Georgian Stan
- 1,865
- 3
- 13
- 27
13
votes
3 answers
How to sign electron app using electron forge?
I am using electron forge for building and packaging my electron app.
How can I code sign my app (using electron forge) for windows and mac?
Electrong-forge: https://github.com/electron-userland/electron-forge

galusben
- 5,948
- 6
- 33
- 52
11
votes
1 answer
How to add extra resources files in production in electron using electron-forge
I have a file that i need compulsory to make my application work,i am able to use the file in development by specifying fixed path var path = process.cwd() + '/src/app/components/task/Scripts'; and the file name after that,but after packaging the…

Martin
- 111
- 1
- 4
8
votes
0 answers
"TypeError: Cannot read property 'date' of undefined" when running npm run make
I'm trying to get react to work with electron and even though i followed the instructions from this site: https://dev.to/mandiwise/electron-apps-made-easy-with-create-react-app-and-electron-forge-560e
and this site (for the icons):…

Stacklep1
- 331
- 1
- 2
- 8
8
votes
2 answers
Electronforge build app for other platform
I'm currently building a cross platform app with electron(-forge) for mac, linux and windows. I'm on mac and with npm run make the app gets packaged and built for mac.
Is there any way (flag in build command or something) to build the app on mac for…

dan-koller
- 218
- 1
- 4
- 10
7
votes
3 answers
What is this Electron Forge ERROR in Electron's template (Typescript + Webpack)?
I installed Electron's template following Electron Forge page.
npx create-electron-app my-new-app --template=typescript-webpack
After that, I run
npm run start
insides my-new-app folder and the following error message were popped up in command…

suzuki
- 73
- 1
- 6
7
votes
0 answers
How do I include the node_modules in electron-forge webpack?
The @vercel/webpack-asset-relocator-loader works in some modules, and does not work in some. In cases that it doesn't work, I have to use the externals config as stated in the electron-forge docs here.
If the asset relocator loader does not work…

jove0610
- 664
- 1
- 8
- 16
7
votes
2 answers
How to hot reload without being redirected to root with electron-forge and react
I'm having a problem with electron-forge, which I imagine is a common problem, but I can't seem to find the answer.
I have created a new project with npx create-electron-app and I have installed and setup react, and it's all working just fine.
The…

DrLazer
- 2,805
- 3
- 41
- 52
7
votes
1 answer
how can you overwrite or remove the signature "electron.app.Electron" from the desktop notification
I'm trying to remove or overwrite my notification signature made by electron.
here is what i get:
I am trying to whether overwrite the signature electron.app.Electron or remove it completely, by knowing
that I have tested it on test mode (npm run…

darkness
- 73
- 1
- 6
7
votes
2 answers
Electron Forge with react?
Is there any simple way I can setup an app with Electron-Forge and React? I am usin the webpack template but don't know what to do to get jsx to work. I have the react stuff in renderer.js

I'veGotRoot
- 331
- 2
- 8
7
votes
3 answers
Setting platform dependant icon via electron-forge electronPackagerConfig
Using electron-forge to build a desktop app. The app is built for both OSX & Windows. Inside my package.json, I have:
"electronPackagerConfig": {
"icon": "src/images/icon/app_icon_osx.icns"
}
When I build on Windows, I'm having to manually…

Ben Harrell
- 123
- 1
- 7
7
votes
0 answers
Electron Forge packaging configuration not working
I am trying to package my app with electron-forge package using the following configuration:
"config": {
"forge": {
"make_targets": {
"linux": [
"deb"
],
"win32": [
"squirrel"
]
},
…

Johannes
- 828
- 12
- 29