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.

Warning in console: (electron) The remote module is deprecated. Use https://github.com/electron/remote instead.

See original GitHub issue

As at version 4.4.1 the code below from here causes a warning stating (electron) The remote module is deprecated. Use https://github.com/electron/remote instead to appear in the renderer’s dev tools console:

if (electron.remote) {
  return electron.remote[name];
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
megahertzcommented, Nov 24, 2022

All remote-related parts are removed from v5

0reactions
Treverixcommented, Sep 17, 2021

The remote module was finally removed with Electron 14. We can now use @electron/remote as a replacement. Nevertheless. I get a lot of ‘call stack exceeded’ issue now, probably because log messages are, in some cases, are now sent from main to render and back until node gives up 😃

Ah - found it. I mapped the electron-log functions on console and that worked like a charm until electron 13.3 but not with electron 14 (with the latest version of @electron/remote) anymore. This does the ‘ping-pong’ now.

const _console = {... console};
Object.assign(console, log.functions);
console.warn = log.debug;
console.error = log.debug;
Read more comments on GitHub >

github_iconTop Results From Across the Web

In electron since the 'remote' has been deprecated, what ...
I tried importing "remote" module in the index.js file but that didn't work. I even set the enableRemoteModule: true in webPreferences in index....
Read more >
Breaking Changes | Electron
Breaking changes will be documented here, and deprecation warnings added to JS code where possible, at least one major version before the change...
Read more >
electron-log - Bountysource
Warning in console : (electron) The remote module is deprecated. Use ... Use https://github.com/electron/remote instead to appear in the renderer's dev tools ...
Read more >
Getting witsec Design Blocks working in Mobirise 5.6
[38350:0206/162401.759257:INFO:CONSOLE(13)] "(electron) The remote module is deprecated. Use https://github.com/electron/remote instead.
Read more >
White screen when idle - Bug Reports - Anytype Community
electron /js2c/renderer_init.js:13 (electron) The remote module is deprecated. Use https://github.com/electron/remote instead. log ...
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