disable remote.require call if the remote module has been disabled
See original GitHub issueThe 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:
- Created 3 years ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
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.