-
Notifications
You must be signed in to change notification settings - Fork 148
Closed
Labels
Description
Plugin version:
7.0.0
Platform(s):
Electron
Current behavior:
When try to use the db i get "CapacitorSQLite" plugin is not implemented on electron.
No db was created.
Expected behavior:
The db get created, open and i can work with it
Steps to reproduce:
I created a test Project.
Angular 19
Ionic 7
Capacitor 7
capacitor-commuinty/electron 5.0.1
i just installed your sqlite plugin, sync etc and i get the error
Related code:
package.json
"dependencies": {
"@angular/animations": "^19.0.0",
"@angular/common": "^19.0.0",
"@angular/compiler": "^19.0.0",
"@angular/core": "^19.0.0",
"@angular/forms": "^19.0.0",
"@angular/platform-browser": "^19.0.0",
"@angular/platform-browser-dynamic": "^19.0.0",
"@angular/router": "^19.0.0",
"@capacitor-community/electron": "^5.0.1",
"@capacitor-community/sqlite": "^7.0.0",
"@capacitor/app": "7.0.0",
"@capacitor/core": "7.1.0",
"@capacitor/filesystem": "^7.0.0",
"@capacitor/haptics": "7.0.0",
"@capacitor/keyboard": "7.0.0",
"@capacitor/status-bar": "7.0.0",
"@ionic/angular": "^8.0.0",
"ionicons": "^7.0.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.15.0"
},
electron-plugins,js
/* eslint-disable @typescript-eslint/no-var-requires */
const CapacitorCommunitySqlite = require('..\\..\\..\\node_modules\\@capacitor-community\\sqlite\\electron\\dist\\plugin.js');
module.exports = {
CapacitorCommunitySqlite,
}
Other information:
I ran the Electron Quirks presented on your page but it didnt help.
in my terminal i see
in setupCapacitorElectronPlugins
{
CapacitorCommunitySqlite: { default: { CapacitorSQLite: [class CapacitorSQLite] } }
}
CapacitorCommunitySqlite
Capacitor doctor:
Latest Dependencies:
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
@capacitor/ios: 7.2.0
Installed Dependencies:
@capacitor/android: not installed
@capacitor/ios: not installed
@capacitor/core: 7.1.0
@capacitor/cli: 7.1.0