0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Cannot destructure property 'dialog' of 'require(...).remote' as it is undefined.

Last updated at Posted at 2020-10-29
new BrowserWindow({
    webPreferences: {
      nodeIntegration: true,
      enableRemoteModule: true, // ←を追加する。
    },
    width: 800, height: 600,
});

BrowserWindow___Electron.png
enableRemoteModule Boolean (optional) - Whether to enable the remote module. Default is false.
[【ドキュメント】BrowserWindow | Electron]
(https://www.electronjs.org/docs/api/browser-window#new-browserwindowoptions)

 

 2020-10-29 23.28.33.png
javascript - Electron JS - Cannot destructure property 'BrowserWindow' of 'require(...).remote' as it is undefined - Stack Overflow

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?