ThorstenHans / ngx-electron

A simple Angular wrapper for electron's Renderer API
MIT License
428 stars 86 forks source link

Is this project still supported? #56

Open assmabenmussa opened 4 years ago

assmabenmussa commented 4 years ago

Hey, so I downloaded this library in hopes of it helping me with connecting my Angular project to Electron.js using the ipcRenderer, and I got this message:

   ERROR in node_modules/ngx-electron/public_api.d.ts:3:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved 
to an NgModule class.

    This likely means that the library (ngx-electron) which declares NgxElectronModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, 
and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

I'm using Angular 10

bampakoa commented 4 years ago

@assmabenmussa can you share some more details such as the Electron version that you are using and the way that you are trying to use ipcRenderer? I am currently using the library in Angular 10 with no issues.

sarahtully commented 3 years ago

I had this happen to me vs code imported the wrong path. Double check the import, should be import { ElectronService } from 'ngx-electron'; and not import { ElectronService } from 'ngx-electron/public_api.ts';

luisalejandrofigueredo commented 3 years ago

I try update to the latest version of electron and have error is posible continue with the project

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

17 readonly remote: Electron.Remote;

sean-oneill commented 3 years ago

@luisalejandrofigueredo it looks like remote module was deprecated and replaced with @electron/remote in electron 12.0.0. https://www.electronjs.org/releases/stable?page=12

Downgrading to electron 11.5.0 should get around that issue until this project is updated to account for the remote module being removed.

pkcinna01 commented 2 years ago

Electron 11.5.0 is very old and there have been no changes in this project for over 3 years so looks like the answer is the project is no longer supported. Unfortunately, this is a growing pattern in the angular community.

stewones commented 2 years ago

@pkcinna01 it has absolutely nothing to do with the angular community. this is called open source software, if something isn't working for you, just fork and contribute.

ThorstenHans commented 1 year ago

See #92

Kelele-m3 commented 1 year ago

Hey, so I downloaded this library in hopes of it helping me with connecting my Angular project to Electron.js using the ipcRenderer, and I got this message:

   ERROR in node_modules/ngx-electron/public_api.d.ts:3:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved 
to an NgModule class.

    This likely means that the library (ngx-electron) which declares NgxElectronModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, 
and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

I'm using Angular 10

I am using angular 16, & it is not working for me also. facing the same issue

kulkarni-sachin commented 1 year ago

Hey @Kelele-m3 did you get any resolution?

bampakoa commented 1 year ago

Hello all 👋

As a user of this library, I have taken the initiative to create a new library for going this amazing effort further which is called ngx-electronify. Ngx-electronify provides you with a complete Electron integration consisting of:

This project is heavily inspired by the work that Thorsten has put into ngx-electron. The only difference is that it does not expose the remote module, yet. I plan to add more features shortly so I would appreciate any feedback that you may have.