In the first version of my template ( el3um4s/memento-svelte-electron-typescript) I settled for a working result.
Error while importing electron in react | import { ipcRenderer } ⦠⦠Pick a username ⦠Defines what kind of communication will be done between the main process and the render process. whatever you want. This should just be a case of requiring the ipcRenderer module in your main html file (electron will provide this for you):