Hello everyone. I’m new to Electron and have a problem in regards to my current project.
I have index.html in the app folder, which is loaded by main.js (main process, located at the project’s root). index.html has a script tag with a source pointing to index.js’s location (js/index.js). What I want to do is require a script located under app/db, which contains an interface for the database.
However, in the index.js file, require() doesn’t work (when trying to point app/db/orders.js).
How can I require() .js files (particularly orders.js) in index.js?
Please ask me for more information if necessary.