capacitor-community / capacitor-community/sqlite

bug: "CapacitorSQLite" plugin is not implemented on electron

Open
#667 0 comments 1 reaction 0 assignees View on GitHub
bug/fix needs: triage
Dominant language
Swift
Stars
661
Forks
158
PR merge metrics
No merged PRs in 30d

Description

**Plugin version:**

version 7.0.1, 7.0.2

**Platform(s):**

@capacitor-community/electron v5.0.1 (WIndows 11)

**Issues:**

the plugin failed register while electron start;
the output of exported in rt/electron-plugins.js
module.exports = {
CapacitorCommunitySqlite
}
is: { CapacitorCommunitySqlite: { default: { CapacitorSQLite: [class CapacitorSQLite] } } }

compare with version 5, the exported which work fine is:
CapacitorCommunitySqlite: {
CapacitorSQLite: [class CapacitorSQLite], <=============== Missing this in version 7
default: { CapacitorSQLite: [class CapacitorSQLite] }
 }

i had tried manually populate it in electron-plugins.js (for version 7), then work fine too
module.exports = {
CapacitorCommunitySqlite:{
...CapacitorCommunitySqlite,
CapacitorSQLite:CapacitorCommunitySqlite.default.CapacitorSQLite
},
}

but this is not good solution, because every time ionic cap sync electron will overwrite back the rt/electron-plugins.js file.

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.