Skip to content
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

Error while starting app #173

Open
jolic opened this issue Dec 16, 2024 · 1 comment
Open

Error while starting app #173

jolic opened this issue Dec 16, 2024 · 1 comment

Comments

@jolic
Copy link

jolic commented Dec 16, 2024

Hi,

I tried a basic setup with an electron app and it doesn't start:

`$ electron-forge start
√ Checking your system
√ Locating application
√ Loading configuration
× Preparing native dependencies: 0 / 1
› node-gyp failed to rebuild
'.......my-electron-app2\node_modules\electron-edge-js'
■ Running generateAssets hook
■ Running preStart hook

...lots of lines...

Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
failed with exit code: 1
at ChildProcess. (.....\my-electron-app2\node_modules@elect
ron\node-gyp\lib\build.js:215:23)
at ChildProcess.emit (node:events:518:28)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)

An unhandled rejection has occurred inside Forge:
Error: node-gyp failed to rebuild '.....\my-electron-app2\node_modules\electron-edge-js'
at ChildProcess. (......\my-electron-app2\node_modules@electron\rebuild\lib\module-type\node-gyp\node-gyp.js:121:24)
at ChildProcess.emit (node:events:518:28)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)

`

Any hints how to get rid of the error?

@agracio
Copy link
Owner

agracio commented Dec 16, 2024

Did you try https://github.com/agracio/electron-edge-js-quick-start-forge?
electron-edge-js should always be excluded from rebuild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants