Electron 14: Zone no longer working using @electron/remote
See original GitHub issueWhich @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
Module ‘remote’ has been deprecated and removed in Electron 14. Module remote can be replaced with @electron/remote.
However, when using @electron/remote, code running inside an event triggered by a popup menu does no longer run inside a zone.
See also https://github.com/angular/angular/issues/31668
Please provide a link to a minimal reproduction of the bug
https://github.com/pamtbaau/zone
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
Angular CLI: 12.0.5
Node: 14.15.1
Package Manager: npm 6.14.8
OS: win32 x64
Angular: 12.0.5
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1200.5
@angular-devkit/build-angular 12.0.5
@angular-devkit/core 12.0.5
@angular-devkit/schematics 12.0.5
@schematics/angular 12.0.5
rxjs 6.6.7
typescript 4.2.4
electron 14.0.0
Anything else?
In repo reproducing the bug, branch electron-v12 is working, branch electron-v14 (using @electron/remote) is not longer working.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Electron Releases - GitHub Pages
Fixed a remote module issue where errors thrown in the main process while setting remote properties would not be re-thrown in the renderer...
Read more >enableRemoteModule is missing from Electron v14 TypeScript ...
Now Electron 14.0.1 is out, and this is how I could enable remote modules for both Main and Renderer processes (your webPreferences settings...
Read more >All the Electron Docs! | Electron
Long term support of older versions of Electron does not currently exist. ... Electron comes with a module called remote that exposes APIs...
Read more >How to Make Frameless Window for Electron with Custom ...
Learn how you can implement a frameless window with custom controls for your next Electron app, to create a more streamlined, minimal user ......
Read more >Modelling of the Electron Density and Total Electron ... - MDPI
The first approximation is good for a not too long signal propagation path and for ... density by more than one order of...
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! I can confirm that using the patch, the
Menu
API is working again in before mentioned project using Electron 14 and @electron/remote.I haven’t been able to test any other API because I abandoned using @electron/remote and stayed at Electron 13 for the moment.
@pamtbaau , I created a new patch, could you help me to test it? Not only
Menu
but also other API you may use. Thank you. here is the patch, zone.zip please run