You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When starting a new ionic app and adding a electron capacitor plataform an erro happens when trying to start the electron app.
Yesterday Capacitor 6 was released. I don't know if it related to this new version.
npx cap open @capacitor-community/electron
ℹ Opening Electron platform: start 🚀
ℹ Opening Electron platform: building electron app
⠸ Opening Electron platform: running electron appError: undefined
✖ Opening Electron platform:
node:internal/process/promises:289
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 "
> TesteXPTO@1.0.0 electron:start-live
> node ./live-runner.js
node:internal/child_process:421
throw new ErrnoException(err, 'spawn');
^
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at Object.spawn (node:child_process:761:9)
at D:\TesteXPTO\electron\live-runner.js:19:24
at new Promise (<anonymous>)
at runBuild (D:\TesteXPTO\electron\live-runner.js:18:10)
at D:\TesteXPTO\electron\live-runner.js:72:9
at Object.<anonymous> (D:\TesteXPTO\electron\live-runner.js:75:3)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32) {
errno: -4071,
code: 'EINVAL',
syscall: 'spawn'
}
Node.js v20.12.2
".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v20.12.2
To Reproduce
ionic start > angular > XPTOapp > standalone
ionic build --prod
npm i @capacitor-community/electron
npx cap add @capacitor-community/electron
npx cap open @capacitor-community/electron
Expected behavior
Build should happen and app should start.
Screenshots
Desktop (please complete the following information):
Describe the bug
When starting a new ionic app and adding a electron capacitor plataform an erro happens when trying to start the electron app.
Yesterday Capacitor 6 was released. I don't know if it related to this new version.
To Reproduce
ionic start > angular > XPTOapp > standalone
ionic build --prod
npm i @capacitor-community/electron
npx cap add @capacitor-community/electron
npx cap open @capacitor-community/electron
Expected behavior
Build should happen and app should start.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: