capacitor-community / capacitor-community/electron

Cannot pack electron app

Open
#214 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
398
Forks
63
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Cannot pack fresh electron app after creating new blank project.

**To Reproduce**
run this:
```
cd /tmp
ionic start # go through the installer, react, blank
npm i @capacitor-community/electron
ionic build
npx cap add @capacitor-community/electron
#npx cap open @capacitor-community/electron # works correctly
cd electron
npm run electron:pack #fails

```
**Error**

```
error TS2688: Cannot find type definition file for 'keyv'.
The file is in the program because:
Entry point for implicit type library 'keyv'
```

**Expected behavior**
Normal compilation for electron pack

**Desktop (please complete the following information):**

- OS: Archlinux
- Browser irrelevant (opera)
- Version @capacitor-community/electron: 4.1.2

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue from the listed Ionic and Capacitor commands, then work from the generated electron directory and its npm run electron:pack entry point. Investigate the TypeScript error about the missing keyv type definition and verify the fix by rerunning the pack command successfully on a fresh blank React project.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
build-system, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.