Namespace 'Electron.CrossProcessExports' has no exported member 'Remote

Viewed 2729

I'm new to Electronjsenter image description here.

Error: node_modules/ngx-electron/lib/electron.service.d.ts:17:31 - error TS2694: Namespace 'Electron.CrossProcessExports' has no exported member 'Remote'.

17     readonly remote: Electron.Remote;

I hope anyone here, understands with this and is able to solve this. thank you! because my goal is to connect ipcMain, using ipcRenderer that I triggered on Angular Services.

3 Answers

A simple google search lead me to the issues section of the repository, and one issue in particular.

The user, named andelz, gave a pretty good answer regarding what might be wrong. By trial and error, I found a working solution that still contains no vulnerabilities (as of the moment of writing):

"ngx-electron": "2.2.0",
"electron": "13.6.6"

Go to the node_modules/ngx-electron/lib/electron.service.d.ts and comment the line -> readonly remote: Electron.Remote;

Related