Closed ws-rush closed 1 year ago
@ws-rush Look at vite-vue-sqlite-app which is a complete set-up for Vite 4.0 Vue3.2 & Capacitor 4. Hope this will help you to start. if you do not need Web, iOS and Android just remove the necessary folder and lines in the main.ts for Web
thank you, I missed plugin
config I will make PR fro README file
{
"appId": "com.example.app",
"appName": "cap",
"webDir": "dist",
"bundledWebRuntime": false,
"plugins": {
"CapacitorSQLite": {
"iosDatabaseLocation": "Library/CapacitorDatabase",
"iosIsEncryption": false,
"iosKeychainPrefix": "cap",
"iosBiometric": {
"biometricAuth": false,
"biometricTitle" : "Biometric login for capacitor sqlite"
},
"androidIsEncryption": false,
"androidBiometric": {
"biometricAuth" : false,
"biometricTitle" : "Biometric login for capacitor sqlite",
"biometricSubTitle" : "Log in using your biometric"
},
"electronWindowsLocation": "C:\\ProgramData\\CapacitorDatabases",
"electronMacLocation": "YOUR_VOLUME/CapacitorDatabases",
"electronLinuxLocation": "Databases"
}
}
}
Describe the bug I test electron with sqlite plugin, I use vue as framework and implement all steps in readme file (specifically Electron Quirks), but I still get this error `Uncaught (in promise) Error: Error invoking remote method 'CapacitorSQLite-createConnection': No handler registered for 'CapacitorSQLite-createConnection'
I use vue 3.2 with vite 4 and capacitor 4
code
Desktop (please complete the following information):