I experienced an error (maximum call stack size exceeded ) while trying to access the database using SQL-cipher to open an electron js(version:13.4.0) app. The main.js is given below
const electron= require('electron');
const url= require('url');
const path= require('path');
var sqlite = require('sqlite-cipher'); //requiring
const{
app,BrowserWindow
}=electron;
app.on('ready',()=>{
//Connecting - (databaseFile, [password], [algorithm])
sqlite.connect('sample','password','aes-256-ctr');
new_window= new BrowserWindow({});
preload:path.join(__dirname,'preload.js')
new_window.loadURL(url.format({
pathname:path.join(__dirname,'/dist/index.html'),
protocol:'file',slashes:true
}));
});

I experienced an error (maximum call stack size exceeded ) while trying to access the database using SQL-cipher to open an electron js(version:13.4.0) app. The main.js is given below
const electron= require('electron');
const url= require('url');
const path= require('path');
var sqlite = require('sqlite-cipher'); //requiring
const{
app,BrowserWindow
}=electron;
app.on('ready',()=>{
});