Support @electron/remote instead of the old require('electron').remote
See original GitHub issueThe current implementation works only with old versions of Electron because require('electron').remote
is now outdated and we have an @electron/remote
Package instead of it.
So to support the new implementation, the dependencies would need to be updated, @electron/remote added and the whole Code would need a refactoring because many things are now outdated…
- Update dependencies
- Add @electron/remote
- Refactor code
I already created a fork and started updating the dependencies: https://github.com/CMiksche/ngx-electron
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:16 (1 by maintainers)
Top Results From Across the Web
Breaking Changes | Electron
The remote module is deprecated in Electron 12, and will be removed in Electron 14. It is replaced by the @electron/remote module. //...
Read more >Electron.remote is undefined even enableRemoteModule is true
Here are the changes in the API. I am sure this helps you figure out the new changes since the remote module is...
Read more >@electron/remote - npm
electron /remote` is an [Electron](https://electronjs.org) module that bridges JavaScript objects from the main process to the renderer ...
Read more >How to switch between multiple windows of Electron JS ...
When we click on some button in any Desktop Application, it opens a new window on top of the previous window, and until...
Read more >Electron's 'remote' module considered harmful | by Jeremy Rose
Since the very earliest versions of Electron, the remote module has been the go-to tool for communicating between the main and renderer ...
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 Free
Top 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
Instead of using
ngx-electron
package use your own ElectronService. An example can be found here.Actually not working in the scope of electron / angular. Will look into all open issues next week
https://thorsten-hans.com
From: Krzysztof Zimny @.> Sent: Friday, September 24, 2021 7:17:24 PM To: ThorstenHans/ngx-electron @.> Cc: Thorsten Hans @.>; Mention @.> Subject: Re: [ThorstenHans/ngx-electron] Support @electron/remote instead of the old require(‘electron’).remote (#70)
@ThorstenHanshttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FThorstenHans&data=04|01||81c1adb45ac0438e0eec08d97f7f2d8d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637681006461773211|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=Dz2BbqD1AbEaownmL%2B%2F9lQ2wNbyfl9c%2B3uCHvAQHUVw%3D&reserved=0 do you intend to fix the issue and maintain your package in the future or is this project dead?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FThorstenHans%2Fngx-electron%2Fissues%2F70%23issuecomment-926794121&data=04|01||81c1adb45ac0438e0eec08d97f7f2d8d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637681006461783172|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=qtpxG4kapmhqYpzp7JBVzEHqO29%2B%2Fs%2ByvvEgIRQcyUI%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAACXL7CYVYIL7KBSLT2IHPLUDSXCJANCNFSM5DSTRDLA&data=04|01||81c1adb45ac0438e0eec08d97f7f2d8d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637681006461793124|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=0Mx3WncYBv5zhfRpliFg4O9PF%2FkpgmDb7A6dIN7CQXQ%3D&reserved=0.