apache / apache/pouchdb

Unable to use With Electron

Open
#9,074 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Node Version: 22
Electron Version: 34.2
PouchDb Version: 9

I create project using this command
```
yarn create @quick-start/electron my-app
```

Im trying to use pouch db with electron but Im facing this issues,

```
pouchdb.js?v=025ade60:1222 Uncaught TypeError: Class extends value [object Object] is not a constructor or null
at pouchdb.js?v=025ade60:1222:43
(anonymous) @ pouchdb.js?v=025ade60:1222Understand this errorAI
```
And Every time if i install any packages Im getting this output in console which takes lots of time

```
yarn
yarn install v1.22.22
warning package.json: No license field
warning dream-pos@1.0.0: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "electron-builder > app-builder-lib@25.1.8" has unmet peer dependency "electron-builder-squirrel-windows@25.1.8".
[4/4] 🔨 Building fresh packages...
$ electron-builder install-app-deps
• electron-builder version=25.1.8
• loaded configuration file=/Users/sujangc/Desktop/dream-pos/electron-builder.yml
• executing @electron/rebuild electronVersion=34.2.0 arch=x64 buildFromSource=false appDir=./
• installing native dependencies arch=x64
• preparing moduleName=leveldown arch=x64
• finished moduleName=leveldown arch=x64
• preparing moduleName=leveldown arch=x64
• finished moduleName=leveldown arch=x64
• completed installing native dependencies
✨ Done in 245.98s.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.