Any pointers on how to fix this would be much-appreciated, works fine if I use Framework7 but I’d like to use bootstrap.
Wappler Version: v4.9.1
Operating System: macOS Monterey
Expected behavior
I should be able to change the Electron settings within the project settings and run the emulation of a desktop app.
Actual behavior
Electron settings are missing from the project settings.
- Electron seems to install correctly
- When building or running the emulator there is an error message.
Run your project for electron …
- Opening Electron platform
- Opening Electron platform: start
Opening Electron platform: start - Opening Electron platform: builing electron app
Opening Electron platform: builing electron app - Opening Electron platform: running electron app
Error: undefined
Opening Electron platform:
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "
helloworld@1.0.0 electron:start-live
node ./live-runner.js
helloworld@1.0.0 build
tsc && electron-rebuild
node:events:505
throw er; // Unhandled ‘error’ event
^
Error: spawn /Users/jamiebyrne/Documents/resto-test-2/electron/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted ‘error’ event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: ‘ENOENT’,
syscall: ‘spawn /Users/jamiebyrne/Documents/resto-test-2/electron/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron’,
path: ‘/Users/jamiebyrne/Documents/resto-test-2/electron/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron’,
spawnargs: [ ‘–inspect=5858’, ‘./’ ]
}
".] {
code: ‘ERR_UNHANDLED_REJECTION’
}
electron run successfully!
Last updated: