Closed medi11 closed 2 years ago
Try upgrading to the latest version.
It is still the same, nothing changed.
Can confirm this issue is present on latest version:
"dependencies": {
"electron-is-dev": "1.2.0",
"electron-store": "8.0.1",
"express": "4.17.1",
"get-port": "5.1.1",
"react": "17.0.2",
"electron": "16.0.5",
"react-dom": "17.0.2"
}
const mw = new BrowserWindow({
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
},
});
@medi11
In the main process, add these lines and it fixes the issue
const ElectronStore = require('electron-store');
ElectronStore.initRenderer();
@medi11
In the main process, add these lines and it fixes the issue
const ElectronStore = require('electron-store'); ElectronStore.initRenderer();
Thank you @SStoliarchuk, that fixed the issue.
I keep getting this warning whenever I add
electron-store
. Which leads to a frozen window. on frontendon backend
electron:
^16.0.4
electron-store:^7.0.3