I want to create a desktop app. I started to create one by myself using electron and sqlite3. I found out that I didn't understand a lot of things, so I found this tutorial: https://chamaradodandeniya.wordpress.com/2020/02/02/how-to-create-cross-platform-desktop-app-using-electron-react-and-sqllite/ I followed it in order to upgrade my knowledge about electron and sqlite. There are no errors when launching the app which seems great. Though there is one problem. The UI doesn't load! I figured out that the problem occurs because of these two code lines in de dao.js:
const sqlite3 = window.require('sqlite3')
const Promise = window.require('bluebird');
When I delete these lines, the UI comes back to the app. Though I think these lines are important when it comes to saving and getting data from the sqlite3 database.
Is there anyone who can help me solve this problem?