apache / apache/cordova-electron

I have issues when I tried to build cordova-electron

Open
#262 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
135
Forks
60
Avg merge
1d 6h
Merged PRs (30d)
5

Description

I have this error message when building app :

```
cordova build electron --release
• electron-builder version=22.14.13 os=10.0.19045
• writing effective config file=platforms\electron\build\builder-effective-config.yaml
TypeError: The "code" argument must be of type number. Received type string ('ERR_ELECTRON_BUILDER_INVA...')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at c:\Users\xxxx\AppData\Roaming\npm\node_modules\cordova\bin\cordova:32:22
```
Please help me.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `cordova build electron --release` on the reported Windows setup and inspect the `platforms\electron\build\builder-effective-config.yaml` output alongside the stack trace ending at `cordova\bin\cordova:32:22`. Done means the release build completes without the `exitCode` TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, nodejs
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.