Skip to content

bug: "CapacitorSQLite" plugin is not implemented on electron #667

Description

@miau81

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions