Unable to Import or Use Electron
AvIsBeastMC opened this issue · comments
Arunnya commented
Syed Riyaz Uddin commented
Found this fix from Nextron (next.js) github issue
Use:
const {ipcRenderer} = eval('require(\'electron\')');
instead of:
import {ipcRenderer} from 'electron';
or const {ipcRenderer}=require('electron');
Arunnya commented
Found this fix from Nextron (next.js) github issue Use:
const {ipcRenderer} = eval('require(\'electron\')');
instead of:
import {ipcRenderer} from 'electron';
orconst {ipcRenderer}=require('electron');
thanks a lot @riyaz7us!