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
An unhandled rejection has occurred inside Forge: [object Object] #3084
Comments
Hey @maks1mp, thanks for the issue report. A few thoughts:
|
Hi, @erickzhao this is my output with DEBUG:
I have changed the log command and got the following error: An unhandled rejection has occurred inside Forge: |
Experiencing the same error with snap/deb/rpm/squirell distributables on Manjaro 22, Electron 18, electron-forge 6. |
Debugged myself by editing |
@anatoly-day-io does not work for me. |
I am facing the same issue now, waiting for updates 😿 |
@maks1mp @anatoly-day-io @yishayhaz For the folks experiencing this issue, would it be possible for you to include a copy of your repo, or a base repro case? I just tried to reproduce this on Windows with the basic template and didn't hit this error - any additional information or a repro case provided would be very helpful. |
Hi all, The exact error message that folks are running into here ( This means the problem reported in this GitHub issue has many root problems and many solutions, and therefore has very limited usefulness in its current form. I have opened #3086 to give you more helpful error feedback when you hit an error at the Make step, which will hopefully land for Forge v6.0.4. In the meantime, I would suggest following @anatoly-day-io's workaround and hacking process.on('unhandledRejection', (reason, promise)=>{
+ console.log(JSON.stringify(reason))
redConsoleError('\nAn unhandled rejection has occurred inside Forge:');
|
@maks1mp for your exact error, I would install https://www.mono-project.com/docs/getting-started/install/mac/ if you haven't already. |
If folks need additional help debugging their specific issues after getting past the
|
Pre-flight checklist
Electron Forge version
6.0.3
Electron version
18.3.15
Operating system
macOS Monteray 12.5.1
Last known working Electron Forge version
--
Expected behavior
The "make" works ok.
Actual behavior
Tried to build an electron for windows with the command:
"make:windows": "electron-forge make --platform=win32"
Getting error:
An unhandled rejection has occurred inside Forge:
[object Object]
Build for macOS works fine.
Steps to reproduce
Run command:
electron-forge make --platform=win32
forge.config:
package json:
Additional information
Console output:
yarn run make:windows
yarn run v1.22.11
$ electron-forge make --platform=win32
✔ Checking your system
✔ Loading configuration
✔ Resolving make targets
› Making for the following targets: squirrel
✔ Running package command
✔ Preparing to package application
✔ Running packaging hooks
✔ Running generateAssets hook
✔ Running prePackage hook
✔ Packaging application
✔ Packaging for x64 on win32 [7s]
✔ Running postPackage hook
✔ Running preMake hook
❯ Making distributables
✖ Making a squirrel distributable for win32/x64
› An error occured while making for target: squirrel
◼ Running postMake hook
An unhandled rejection has occurred inside Forge:
[object Object]
Electron Forge was terminated. Location:
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: