Hi, I have the following project structure:
Project/ |__main.js |__app |___ js |__ login.js
In login.js I need to import main.js:
const remote = require(‘electron’).remote
const main = remote.require(’…/…/main.js’)
The problem is that the above piece of code doesn’t work. I tried multiple ways without path, with ./…/…/.