Closed beligatclement closed 1 year ago
I resolve my issue by adding into capacitor.config.ts
a plugins property for CapacitorSQLite.
plugins: {
CapacitorSQLite: {
...CapacitorSQLite,
electronLinuxLocation: "/tmp/CapacitorDatabases"
}
}
Full file :
import { CapacitorConfig } from '@capacitor/cli';
import { CapacitorElectronConfig, ElectronConfig } from '@capacitor-community/electron';
import { CapacitorSQLite } from "@capacitor-community/sqlite";
const config: CapacitorConfig = {
appId: 'com.my.app',
appName: 'my-app'',
webDir: 'dist/my-app',
bundledWebRuntime: false
};
const configElectron: ElectronConfig = {
}
const configGlobal: CapacitorElectronConfig = {
...config,
electron: configElectron,
plugins: {
CapacitorSQLite: {
...CapacitorSQLite,
electronLinuxLocation: "/tmp/CapacitorDatabases"
}
}
};
export default configGlobal;
Electron window not opening on
npx cap open @capacitor-community/electron
after installing dependency@capacitor-community/sqlite
. Linked issue on@capacitor-community/sqlite
repo : #327.Steps to reproduce the behavior: Have a working
@capacitor-community/electron
project.Is there a way to display log on open ?
Expected behavior Electron window open with
@capacitor-community/sqlite
dependency.Desktop :
Dependencies :
Dev dependencies :