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.

Electron 14: Zone no longer working using @electron/remote

See original GitHub issue

Which @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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pamtbaaucommented, Feb 15, 2022

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.

1reaction
JiaLiPassioncommented, Feb 14, 2022

@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

unzip zone.zip
npm uninstall zone.js
npm install ./zone.js-0.11.4.tgz
```
Read more comments on GitHub >

github_iconTop 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 >

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