Is it any way to make electron-remote package to work?
Hi, I'm trying to make electron-remote package to work with this boilerplate, but no luck, I'm receiving error:
cannot find module x
when calling:
requireTaskPool(require.resolve(path_to_module))
anyone can help? thanks!
what are you trying to accomplish with electron-remote ?
Hi, I was testing different approaches in order to execute background tasks asynchronously (specially native module execution) and electron-remote seemed to be a good choice, but found that error and stopped.
Hi,
Can you share us how do you import electron-remote package ? Is your module correctly imported in the project ? Maybe it's not be correctly imported by typescript during build phase ?
In the Angular environment, it's recommended to use the dependency injection method to access ElectronService, which in turn provides the electron-remote API. Example:
constructor(
private electronService: ElectronService
) {
this.myObject = this.electronService.remote.require('package');
}