All Questions
65
questions
-4
votes
0
answers
49
views
Bug in finding image in electron with sqlite [closed]
So, my problem is that my app can't find my image, and on my sqlite database there's just a txt file that says undefined:
This function goes immidietely after entering the app
ipcMain.on('load-...
0
votes
0
answers
43
views
Creating SQLite db at runtime without user intervention
I want to create an app (maybe via Electron) which will create an SQLite database file on the users device. I can code the actual creation of the database file and tables in the app no problem, it's ...
0
votes
0
answers
199
views
Next.js API not working in production mode
I am building a electron app using next.js so that I have used Nextron framework for that.
THe issue I am facing is the API that I have created inside the next.js app are working perfectly in the ...
0
votes
1
answer
36
views
In nodejs/sqlite3, run's first callback parameter return the class instance, how can i fix it?
I've got the following class in TypeScript:
class Log
{
public id: number;
public text: string;
construct(text: string){
this.text = text;
}
save(){
db.run(
...
0
votes
0
answers
32
views
SQLite3 and NodeJS / Electron : Asynchronism issue
I am working on an Electron app which uses a SQLite database.
It works fine, except one thing I have been struggling with since the beginning : if the local database doesn't exist, the program creates ...
1
vote
0
answers
71
views
Unable to load image from url fetched from sqlite database
I have a Web app(Electron.Js) using HTML,CSS & Javascript, where in I am saving an image url and background color as chosen by user to Sqlite database using :
const reader = new FileReader();
...
0
votes
0
answers
99
views
electron-builder always show blank page html but after i reload the app with "win + r" button the actuall page show
when i build my app using electron-builder, the built success. but there is a problem. After i install the .exe file, the app running, but only shows blank page, i checked the devtools, it's just the ...
0
votes
0
answers
61
views
TypeOrm One-to-Many/Many-to-One Javascript
I have a Week entity that I would like to save with a one-to-many relationship with the Day entity.
Week Entity
new EntitySchema({
name: 'Week',
target: Week,
columns: {
id: {
type: '...
1
vote
0
answers
92
views
Error retrieving users: TypeError: Cannot read properties of undefined (reading 'getUsers')
dbmng.js for connection to database:
const sqlite3 = require('sqlite3').verbose();
const db = new sqlite3.Database('ticketDb.db');
async function getUsers(){
return new Promise((resolve, reject) =&...
1
vote
0
answers
138
views
pnpm add sqlite3 Unknown options: 'runtime', 'target', 'dist-url'?
This is normal:
npm install sqlite3 --runtime=electron --target=24.2.0 --dist-url=https://electronjs.org/headers
This is wrong:
pnpm add sqlite3 --runtime=electron --target=24.2.0 --dist-url=https://...
1
vote
0
answers
243
views
"Please install the sqlite3 package manually on startup." -error on executable startup
I'm using Electron Forge with SQLite3. In development, everything works fine (rebuilding and then starting the app, since SQLite needs to be recompiled).
electron-rebuild -f -w sqlite3
electron-forge ...
0
votes
0
answers
2k
views
Error: SQLITE_CANTOPEN: unable to open database file with electron-forge packed app
I'm using a sqlite database called sqlite.db in my app.
The database is located in the top directory of my app.
I test the app with npm start while developing. While testing, the database works fine.
...
0
votes
1
answer
327
views
Electron await sqlite3 response
I have a sqlite3 database request in my main.js, that is triggered by button click in renderer.js.
The request reaches my main.js. However, I cannot manage to await the results from the database. The ...
0
votes
1
answer
1k
views
How to upgrade my electron version from 6 to 9 to avoid errors
I would like to upgrade my electron version from 6 a stable version to 9 because of a
problem with my api I have tryied npm fund and npm audit but it doesn't correct the
problem may be someone have an ...
1
vote
0
answers
218
views
Updating the sqlite database that is in the project folder
I want to insert a new value and overwrite my SQLite database using this ipc function (electron).
Whenever I try to add just one entry to the table, it saves it, but as soon as I close the application ...