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.

disable remote.require call if the remote module has been disabled

See original GitHub issue

The remote module is being deprecated and moved to userland

loadRemoteModule uses remote.require to load itself in the opposite process

What would be required to implement this functionality without the remote module? Asking the user to require electron-log in their renderer process manually? Making electron-log set up Ipc Channels to call itself? Would this require that log calls from the renderer process be async (To handle the ipcRenderer.invoke)?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hhyyrylainencommented, Jul 23, 2021

Thanks for working on this. It looks like not even electron devs know how to do that as it says on https://github.com/electron/remote#migrating-from-remote to add the following to the main process script:

require('@electron/remote/main').initialize()
1reaction
megahertzcommented, Jul 22, 2021

I removed the code which uses remote module. Unfortunately, I have no idea how to load electron-log automatically in the main process for renderer-to-main ipc transport usage. So, now it requires to do that manually for those who need that feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add --no-remote to disable remote module resolution ... - GitHub
The behaviour of --no-fetch is to fail to resolve remote modules unless they are already in the cache. A --no-remotes--no-remote flag that ...
Read more >
reactjs - Uncaught Error: @electron/remote is disabled for this ...
I have initialized the package in the public/main. js and when I try to import it in a React component, it gives me...
Read more >
@electron/remote - npm
Emitted when remote.require() is called in the renderer process of webContents . Calling event.preventDefault() will prevent the module from ...
Read more >
Disable-PSRemoting (Microsoft.PowerShell.Core)
The Disable-PSRemoting cmdlet blocks remote access to all PowerShell version 6 and greater session endpoint configurations on the local computer.
Read more >
Breaking Changes | Electron
The remote module was deprecated in Electron 12, and will be removed in Electron 14. It is replaced by the @electron/remote module. //...
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