#window.require is not a function

2 messages · Page 1 of 1 (latest)

vestal zephyr
#

I'm trying to use ipcRenderer.send() in App.txs also added const { ipcRenderer } = window.require('electron'); but it gives me this error: window.require is not a function
TypeError: window.require is not a function. I also tried a solution stackoverflow adding enableRemoteModule: true, in webPreferences main/electron.js but it didn't work. I'm open to any suggestions.