question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Electon 16

See original GitHub issue
node:electron/js2c/renderer_init:73 Error: @electron/remote is disabled for this WebContents. Set {enableRemoteModule: true} in WebPreferences to enable it.

enableRemoteModule is set true and remote is initialized in main. Worked fine with Electron 15.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:20

github_iconTop GitHub Comments

35reactions
panthesinghcommented, Apr 19, 2022

Think I found a possible fix for now.

Enabling the remote module within renderer doesn’t do anything. It seems to only have an effect in main.

Calling it within a ‘browser-window-created’ event should work.

app.on('browser-window-created', (_, window) => {
    require("@electron/remote/main").enable(window.webContents)
})
12reactions
DanielMcAsseycommented, Dec 3, 2021

Electron 16 is completely unusable if using electron remote

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron 16.0.0
Below are breaking changes introduced in Electron 16. More information about these and future changes can be found on the Planned Breaking ...
Read more >
[Bug]: Windows 10/11: Electron 16 doesn't start up ... - GitHub
We are hitting this as well. It looks like Electron 16 does not properly recover from GPU process crashes.
Read more >
electron-edge-js - npm
Underlying 'edge' component is written as synchronous C++ Node.js module and will cause Electron app to freeze when executing long running .NET code....
Read more >
Electron App not working in ubuntu 16 after upgrading to ...
I was building an app using Electron 16.0.6 and it was working fine in the following Ubuntu versions (16,18,20).
Read more >
Electron (software framework) - Wikipedia
Electron is a free and open-source software framework developed and maintained by GitHub. The framework is designed to create desktop applications using web ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found