Does any face this error before in your electron project after installed new @electron/remote package??
mx51damon opened this issue · 2 comments
mx51damon commented
As you can see from the error below, after I have installed following packages
- "electron": "^17.1.2",
- "electron-builder": "^22.14.13",
- "@electron/remote": "^2.0.8",
I got below error message ...
My code is like this:
import { BrowserWindow } from '@electron/remote';
// import * as remote from '@electron/remote';
... ...
this.browserWindow = new BrowserWindow(this.options);
require('@electron/remote/main').initialize();
require('@electron/remote/main').enable(this.browserWindow.webContents);
mx51damon commented