Open didiokener opened 4 years ago
I get the same error in the renderer process. I'm not using any front end framework.
I haven't tried it yet, but I'm planning to run node-machine-id
in the main process and just pass the data to the render to try and overcome this issue I haven't been able to resolve.
Perhaps related to: https://github.com/automation-stack/node-machine-id/issues/29
Use
remote.require('node-machine-id');
import { ElectronService as NgxService } from 'ngx-electron';
When I implement this package on Angular Electron from https://github.com/maximegris/angular-electron, I get the same error of issue #29, but I am using Angular not Vue.js. I already tried verify if the application is Electron to execute the method machineId only when running on Electron, like, if (isElectron) id = machineIdSync(); But it is running into the same error. Thanks for listening.