-
Notifications
You must be signed in to change notification settings - Fork 146
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.